Skip to content

Update req dependency to allow 0.5.x #53

Update req dependency to allow 0.5.x

Update req dependency to allow 0.5.x #53

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-20.04
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: "1.12"
otp: 24.3
- pair:
elixir: "1.13"
otp: 25
- pair:
elixir: "1.16"
otp: 26
lint: lint
coverage: coverage
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
- uses: actions/cache@v2
id: cache-deps
with:
path: deps
key: mix-${{ runner.os }}-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
- run: mix do deps.get, deps.compile
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test
if: ${{!matrix.coverage}}
- run: mix test --cover
if: ${{matrix.coverage}}
- uses: actions/upload-artifact@v3
with:
name: coverage
path: cover
if: ${{matrix.coverage}}