Skip to content

add linting CI (#101) #3

add linting CI (#101)

add linting CI (#101) #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: 27.x
elixir-version: 1.17.x
- uses: actions/cache@v3
id: cache-deps
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-lint-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-lint-
- run: mix do deps.get --check-locked, deps.compile
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: mix deps.unlock --check-unused
- run: mix compile --warnings-as-errors
- run: mix format --check-formatted