Skip to content

chore: Fix workflows. #48

chore: Fix workflows.

chore: Fix workflows. #48

Workflow file for this run

name: CI
on:
push:
branches:
- main
- '**'
pull_request:
branches: [ main ]
jobs:
tests:
name: Run tests (Elixir ${{ matrix.elixir }}, OTP ${{ matrix.otp }})
strategy:
matrix:
include:
- os: ubuntu-latest
elixir: 1.17
otp: 26
- os: ubuntu-latest
elixir: 1.18
otp: 27
runs-on: ${{ matrix.os }}
env:
MIX_ENV: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Install dependencies
run: |
mix deps.get
- name: Check source code format
run: mix format --check-formatted
- name: Remove compiled application files
run: mix clean
- name: Compile & lint dependencies
run: mix compile --warnings-as-errors
- name: Run tests
run: mix test