Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

49 lines (42 sloc) 1.17 KB
name: Elixir CI
on: push
jobs:
test:
runs-on: ${{ matrix.os }}
name: OTP ${{ matrix.otp }} | Elixir ${{ matrix.elixir }} | Node ${{ matrix.node }} | OS ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
otp: [22.x]
elixir: [1.9.x]
node: [12.x]
steps:
- uses: actions/checkout@v1.0.0
- uses: actions/setup-elixir@v1.0.0
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
yarn --cwd assets install
- name: Run tests
run: |
mix compile --warnings-as-errors
mix format --check-formatted
mix test
env:
MIX_ENV: test
- name: Prod compile
run: |
mix compile
yarn --cwd assets deploy
mix phx.digest
env:
MIX_ENV: prod
SECRET_KEY_BASE: w/eLXRLS1u0eVV59nKi/nVGYgkas4D3Lo5xj0lZ2oeFa3ceuQW38Gn/6b1m1aYpz
You can’t perform that action at this time.