Skip to content

Update CI config #1336

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
47 changes: 31 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,47 @@ on:

jobs:
mix_test:
name: mix test (Erlang/OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
runs-on: ubuntu-16.04
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- otp: 21.3.8.16
elixir: 1.10.3
- otp: 23.0.2
elixir: 1.10.3
runs-on: ubuntu-latest
- pair:
elixir: 1.10.4
otp: 21.3.8.21
- pair:
elixir: 1.11.3
otp: 23.2.5
lint: lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1

- uses: erlef/setup-elixir@v1
with:
experimental-otp: true
otp-version: '${{matrix.otp}}'
elixir-version: '${{matrix.elixir}}'
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
- name: Run Tests
run: mix test
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

- name: Prerelease
run: test/prerelease.sh

- name: Generate docs
run: |
mix docs
Expand Down