-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (35 loc) · 1000 Bytes
/
quality.yml
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
name: Code Quality
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
elixir_version: '1.15'
otp_version: '26.0'
jobs:
credo:
name: Credo
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- name: Set up Elixir and OTP
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ env.elixir_version }}
otp-version: ${{ env.otp_version }}
- name: Checkout code
uses: actions/checkout@v3
- name: 'Restore cache for deps/ and _build/ directories'
uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-dev-${{ env.elixir_version }}-${{ env.otp_version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-dev-${{ env.elixir_version }}-${{ env.otp_version }}-
- name: Install Mix dependencies
run: mix deps.get
- name: Run credo
run: mix credo