Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Mar 7, 2024
1 parent a56442e commit 180db57
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with GitHubActions version 0.2.6
# Created with GitHubActions version 0.2.19
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -12,29 +12,34 @@ jobs:
strategy:
matrix:
elixir:
- '1.11.4'
- '1.12.3'
- '1.13.4'
- '1.14.2'
- '1.14.5'
- '1.15.7'
- '1.16.0'
otp:
- '21.3'
- '22.3'
- '23.3'
- '24.3'
- '25.2'
- '25.3'
- '26.2'
exclude:
- elixir: '1.11.4'
otp: '25.2'
- elixir: '1.12.3'
otp: '21.3'
otp: '25.3'
- elixir: '1.12.3'
otp: '25.2'
otp: '26.2'
- elixir: '1.13.4'
otp: '21.3'
- elixir: '1.14.2'
otp: '21.3'
- elixir: '1.14.2'
otp: '26.2'
- elixir: '1.14.5'
otp: '22.3'
- elixir: '1.15.7'
otp: '22.3'
- elixir: '1.15.7'
otp: '23.3'
- elixir: '1.16.0'
otp: '22.3'
- elixir: '1.16.0'
otp: '23.3'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -58,28 +63,28 @@ jobs:
with:
path: test/support/plts
key: test/support/plts-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
if: ${{ contains(matrix.elixir, '1.14.2') && contains(matrix.otp, '25.2') }}
if: ${{ contains(matrix.elixir, '1.16.0') && contains(matrix.otp, '26.2') }}
- name: Get dependencies
run: mix deps.get
- name: Compile dependencies
run: MIX_ENV=test mix deps.compile
- name: Compile project
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Check unused dependencies
if: ${{ contains(matrix.elixir, '1.14.2') && contains(matrix.otp, '25.2') }}
if: ${{ contains(matrix.elixir, '1.16.0') && contains(matrix.otp, '26.2') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.14.2') && contains(matrix.otp, '25.2') }}
if: ${{ contains(matrix.elixir, '1.16.0') && contains(matrix.otp, '26.2') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.14.2') && contains(matrix.otp, '25.2') }}
if: ${{ contains(matrix.elixir, '1.16.0') && contains(matrix.otp, '26.2') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.14.2') && contains(matrix.otp, '25.2')) }}
if: ${{ !(contains(matrix.elixir, '1.16.0') && contains(matrix.otp, '26.2')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.14.2') && contains(matrix.otp, '25.2') }}
if: ${{ contains(matrix.elixir, '1.16.0') && contains(matrix.otp, '26.2') }}
- name: Static code analysis
run: mix dialyzer
if: ${{ contains(matrix.elixir, '1.14.2') && contains(matrix.otp, '25.2') }}
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.16.0') && contains(matrix.otp, '26.2') }}

0 comments on commit 180db57

Please sign in to comment.