-
Notifications
You must be signed in to change notification settings - Fork 40
63 lines (50 loc) · 1.35 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Code Quality
on:
pull_request:
push:
branches:
- master
- test
tags:
- '*'
workflow_dispatch:
jobs:
quality_actions:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: yamllint .
working-directory: .github
quality_elixir:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: setup
id: setup
uses: erlef/setup-beam@v1
with:
elixir-version: '1.16.3'
otp-version: '26.2'
- name: mix-cache
uses: actions/cache@v4
id: mix-cache
with:
path: deps
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-${{ steps.setup.outputs.otp-version }}-${{ steps.setup.outputs.elixir-version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: mix-deps
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: check unused deps
run: mix deps.unlock --check-unused
- name: check for compiler warnings
run: |
mix deps.compile
mix compile --warnings-as-errors
- name: format
run: mix format --check-formatted
- name: credo
run: mix credo --strict