Skip to content

Upgrade CI: Use new checkout and setup-beam actions #86

Upgrade CI: Use new checkout and setup-beam actions

Upgrade CI: Use new checkout and setup-beam actions #86

Workflow file for this run

name: CI
on: push
jobs:
unit-test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.15.6
otp: 25.3.2.6
- elixir: 1.15.6
otp: 24.3.4.13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Elixir and Erlang
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps and _build cache
uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Install dependencies
run: mix deps.get
- name: Compile deps
run: mix deps.compile
- name: Run tests
run: mix test
- name: Check format
run: mix format --check-formatted
- name: Check quality
run: mix credo --all --strict || true