Support different formats as outputs and integrate with Explorer #125
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- pair: | |
otp: "25.0" | |
elixir: "1.14.2" | |
- pair: | |
otp: "27.0" | |
elixir: "1.17.2" | |
lint: lint | |
env: | |
MIX_ENV: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Erlang & Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.pair.otp }} | |
elixir-version: ${{ matrix.pair.elixir }} | |
- uses: actions/cache@v4 | |
with: | |
path: deps | |
key: mix-deps-${{ hashFiles('**/mix.lock') }} | |
- name: Install mix dependencies | |
run: mix deps.get | |
- name: Check formatting | |
run: mix format --check-formatted | |
if: ${{ matrix.lint }} | |
- name: Check unused deps | |
run: mix deps.unlock --check-unused | |
if: ${{ matrix.lint }} | |
- name: Check warnings | |
run: mix compile --warnings-as-errors | |
if: ${{ matrix.lint }} | |
- name: Run tests | |
run: mix test |