Skip to content

Add a basic CI workflow #3

Add a basic CI workflow

Add a basic CI workflow #3

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- elixir: "1.15"
otp: "26"
- elixir: "1.17"
otp: "27"
- elixir: "1.18"
otp: "27"
- elixir: "1.19"
otp: "28"
steps:
- uses: actions/[email protected]
- uses: erlef/[email protected]
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install dependencies
run: mix deps.get
- name: Compile
run: mix compile --warnings-as-errors
- name: Check Formatting
run: mix format --check-formatted
- name: Run tests
run: mix test
- name: Check docs
run: mix docs --warnings-as-errors