Skip to content

Commit

Permalink
Update CI build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pnezis committed Jun 13, 2024
1 parent 3894302 commit 9dcc642
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,36 @@ jobs:

name: Build and test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir: "1.17.0"
otp: "27.0"
- elixir: "1.16.2"
otp: "26.1"
lint: true
- elixir: "1.15.6"
otp: "26.1"


steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
with:
elixir-version: '1.15.2' # [Required] Define the Elixir version
otp-version: '26.0' # [Required] Define the Erlang/OTP version
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
key: ${{ runner.os }}-mix-${{matrix.elixir}}-${{matrix.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Compile with warnings enabled
run: mix compile --force --warnings-as-errors
- name: Format
run: mix format --check-formatted
if: ${{ matrix.lint }}
- name: Test
run: mix test --cover
if: ${{ matrix.lint }}

0 comments on commit 9dcc642

Please sign in to comment.