-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 852 Bytes
/
code_quality.yml
File metadata and controls
37 lines (30 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Elixir CI
on:
push:
permissions:
contents: read
jobs:
code-quality:
name: Formatting, unused deps
runs-on: ubuntu-22.04
env:
MIX_ENV: test
strategy:
matrix:
elixir: ["1.18.4"]
otp: ["27"]
steps:
- uses: actions/checkout@v4
- name: Setup Elixir Project
uses: ./.github/actions/elixir-setup
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
build-flags: --all-warnings --warnings-as-errors
- name: Check for unused deps
run: mix deps.unlock --check-unused
- name: Check code formatting
run: mix format --check-formatted
# Check formatting even if there were unused deps so that
# we give devs as much feedback as possible & save some time.
if: always()