Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Aug 23, 2024
1 parent f966d1d commit 9e32dda
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 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.23
# Created with GitHubActions version 0.2.24
name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -16,7 +16,7 @@ jobs:
- '1.14.5'
- '1.15.8'
- '1.16.3'
- '1.17.1'
- '1.17.2'
otp:
- '22.3'
- '23.3'
Expand Down Expand Up @@ -45,11 +45,11 @@ jobs:
otp: '23.3'
- elixir: '1.16.3'
otp: '27.0'
- elixir: '1.17.1'
- elixir: '1.17.2'
otp: '22.3'
- elixir: '1.17.1'
- elixir: '1.17.2'
otp: '23.3'
- elixir: '1.17.1'
- elixir: '1.17.2'
otp: '24.3'
steps:
- name: Checkout
Expand All @@ -74,28 +74,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.17.1') && contains(matrix.otp, '27.0') }}
if: ${{ contains(matrix.elixir, '1.17.2') && contains(matrix.otp, '27.0') }}
- 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.17.1') && contains(matrix.otp, '27.0') }}
if: ${{ contains(matrix.elixir, '1.17.2') && contains(matrix.otp, '27.0') }}
run: mix deps.unlock --check-unused
- name: Check code format
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
if: ${{ contains(matrix.elixir, '1.17.2') && contains(matrix.otp, '27.0') }}
run: mix format --check-formatted
- name: Lint code
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
if: ${{ contains(matrix.elixir, '1.17.2') && contains(matrix.otp, '27.0') }}
run: mix credo --strict
- name: Run tests
run: mix test
if: ${{ !(contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0')) }}
if: ${{ !(contains(matrix.elixir, '1.17.2') && contains(matrix.otp, '27.0')) }}
- name: Run tests with coverage
run: mix coveralls.github
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
if: ${{ contains(matrix.elixir, '1.17.2') && contains(matrix.otp, '27.0') }}
- name: Static code analysis
run: mix dialyzer --format github --force-check
if: ${{ contains(matrix.elixir, '1.17.1') && contains(matrix.otp, '27.0') }}
if: ${{ contains(matrix.elixir, '1.17.2') && contains(matrix.otp, '27.0') }}

0 comments on commit 9e32dda

Please sign in to comment.