-
Notifications
You must be signed in to change notification settings - Fork 37
34 lines (34 loc) · 1014 Bytes
/
lint.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
name: Lint
on: [pull_request]
jobs:
test:
name: Lint
env:
MIX_ENV: test
runs-on: ubuntu-latest
container:
image: ghcr.io/bitcrowd/chromic_pdf:alpine-3-18-4
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
options: --privileged --user 1001
steps:
- uses: actions/checkout@v3
- name: Dependencies cache
id: deps-cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-deps-v1-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Build artifacts cache
id: build-and-plts-cache
uses: actions/cache@v3
with:
path: |
_build
.plts
key: ${{ runner.os }}-build-and-plts-v1-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- run: mix local.hex --force && mix local.rebar
- run: mix deps.get
- run: mix compile
- run: mix lint