Skip to content

upgrade GHA reusable actions to node24-compatible versions, as the no… #17

upgrade GHA reusable actions to node24-compatible versions, as the no…

upgrade GHA reusable actions to node24-compatible versions, as the no… #17

Workflow file for this run

name: Elixir Tests & Dialyzer
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['22', '23', '24']
elixir: ['1.11.4', '1.12', '1.13']
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install Mix Dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Compile
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Retrieve PLT Cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
id: plt-cache
with:
path: priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Run credo
run: MIX_ENV=test mix credo --strict
- name: Run dialyzer
run: MIX_ENV=test mix dialyzer --halt-exit-status
- name: Run tests
run: mix test