Skip to content

Bump actions/cache from 4.0.1 to 4.0.2 #247

Bump actions/cache from 4.0.1 to 4.0.2

Bump actions/cache from 4.0.1 to 4.0.2 #247

Workflow file for this run

name: Elixir CI
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.13.4
otp: 24.2
test-options: "--warnings-as-errors"
- elixir: 1.13.4
otp: 24.2
unlock: true
test-options: "--warnings-as-errors"
- elixir: 1.14.4
otp: 25.3
unlock: true
test-options: "--warnings-as-errors"
- elixir: 1.14.4
otp: 25.3
unlock: true
test-options: "--warnings-as-errors"
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} / ${{matrix.unlock}}
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- run: mix deps.unlock --all --check-unused
if: ${{ matrix.unlock }}
- run: mix deps.get --only test
- run: mix compile --warnings-as-errors
- run: mix test ${{ matrix.test-options }}
lint:
name: Run lint & format checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.14.4' # Define the elixir version [required]
otp-version: '25.3' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/[email protected]
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- run: mix deps.get
- run: mix format --check-formatted