Skip to content

Commit

Permalink
exclude step if elixir version isn't latest one
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmarcon committed Mar 11, 2024
1 parent 87db697 commit 6f37441
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

env:
ELIXIR_LATEST: '1.16.0'

permissions:
contents: read

Expand Down Expand Up @@ -39,6 +42,7 @@ jobs:
- name: Install dependencies
run: mix deps.get
- name: Compile with warnings
if: ${{ matrix.elixir == env.ELIXIR_LATEST}}
run: mix compile --warnings-as-errors
- name: Check format
run: mix format --check-formatted
Expand Down

0 comments on commit 6f37441

Please sign in to comment.