Skip to content

chore: create a publish action #4

chore: create a publish action

chore: create a publish action #4

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.17.1
otp: 27.0
lint: true
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
version-type: strict
- run: mix deps.get --only test
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.get && mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test