-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (40 loc) · 920 Bytes
/
styles.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
45
46
47
48
49
50
51
52
name: Styles
on:
push:
branches:
- "master"
pull_request:
branches:
- "*"
env:
MIX_ENV: ci
jobs:
styles:
name: Check styles
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0"
elixir-version: "1.15"
- name: Set up cache
uses: actions/[email protected]
id: cache
with:
path: |
deps
_build
priv/plts
key: styles-${{ runner.os }}-${{ hashFiles('mix.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Check format
run: mix format --check-formatted
- name: Run credo
run: mix credo --strict
- name: Run dialyzer
run: mix dialyzer