Skip to content

Update versions in CI (#43) #78

Update versions in CI (#43)

Update versions in CI (#43) #78

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
# Oldest.
- elixir: "1.11"
otp: "23.3"
os: ubuntu-20.04
# Newest.
- elixir: "1.17"
otp: "27.0"
lint: lint
os: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get --only test
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix do deps.get, deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test