Skip to content

Introduce Steps

Introduce Steps #164

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 41, Col: 3): 'test' is already defined
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: 1.16.x
otp: 26.x
- pair:
elixir: 1.19.x
otp: 27.x
steps:
- uses: actions/checkout@v6
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 27.x
elixir-version: 1.18.x
- name: Install dependencies
run: mix deps.get
- name: Run "mix format"
run: mix format --check-formatted
- name: Check unused dependencies
run: mix deps.unlock --check-unused
- name: Compile with --warnings-as-errors
run: mix compile --warnings-as-errors
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- erlang: 26.x
elixir: 1.16.x
- erlang: 27.x
elixir: 1.19.x
steps:
- uses: actions/checkout@v6
- name: Install OTP and Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.erlang}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test --trace