Skip to content

Update CI config #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 32 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,47 @@ name: CI
on:
pull_request:
push:
branches:
branches:
- master

jobs:
mix_test:
name: mix test (Erlang/OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
runs-on: ubuntu-latest
container: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-alpine-3.11.6
test:
runs-on: ubuntu-16.04
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.7.4
otp: 19.3.6.13
- elixir: 1.8.2
otp: 20.3.8.26
- elixir: 1.9.4
otp: 20.3.8.26
- elixir: 1.10.3
otp: 21.3.8.16
- elixir: 1.10.3
otp: 23.0.2
- pair:
elixir: 1.7.4
otp: 19.3.6.13
- pair:
elixir: 1.11.3
otp: 23.2.5
lint: lint
steps:
- uses: actions/[email protected]
- uses: actions/checkout@v2

- uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}

- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
run: mix deps.get --only test

- run: mix format --check-formatted
if: ${{ matrix.lint }}

- run: mix deps.get && mix deps.unlock --check-unused
if: ${{ matrix.lint }}

- run: mix deps.compile

- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}

- run: mix test.all
env:
ELIXIR_ERL_OPTIONS: "+T 9"