Skip to content

Commit

Permalink
Define separate check_format job in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Clifton McIntosh committed Dec 3, 2024
1 parent 2e9468e commit 5ea07fa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,31 @@ jobs:
- name: Run dialyzer
run: mix dialyzer --format github --format dialyxir

check_format:
runs-on: ubuntu-22.04
env:
MIX_ENV: test

steps:
- uses: actions/checkout@v4

- name: Set up Elixir
id: beam
uses: erlef/setup-beam@v1
with:
elixir-version: 1.16
otp-version: 26

- uses: actions/cache@v4
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}
- run: mix deps.get

- run: mix format --check-formatted

0 comments on commit 5ea07fa

Please sign in to comment.