-
-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (33 loc) · 882 Bytes
/
checks.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
name: AyeSQL Checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: "test"
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
name: "Setup Elixir"
with:
otp-version: "27.1.2"
elixir-version: "1.17.3"
- name: "Get dependencies"
run: mix do local.rebar --force, local.hex --force, deps.get
- name: "Compile dependencies"
run: mix deps.compile
- name: "Compile project"
run: mix compile --warnings-as-errors
- name: "Check formatting"
run: mix format --dry-run --check-formatted
- name: "Run tests with coverage"
run: mix coveralls.github
- name: "Run Credo"
run: mix credo