-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 1.07 KB
/
code-quality.yaml
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
38
39
40
41
42
43
44
45
46
name: Code Quality
on:
push:
branches:
- main
pull_request:
branches:
- "*"
# Cancel any in-progress instances of this workflow when this instance is triggered.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality_checks:
name: Formatting, Credo, and Unused Deps
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Elixir Project
uses: ./.github/actions/elixir-setup
with:
build-app: false
- name: Check for unused deps
run: mix deps.unlock --check-unused
- name: Check code formatting
run: mix format --check-formatted
if: always()
- name: Run Credo
run: mix credo --strict
if: always()
- name: Check for compile-time dependencies
run: mix xref graph --label compile-connected --fail-above 0
if: always()
- name: Check for security vulnerabilities in Phoenix project
run: mix sobelow --config
if: always()