-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 877 Bytes
/
ci.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-22.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
elixir: ["1.14", "1.15"]
otp: ["24.3.4.9", "25.3.2.3"]
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install Dependencies
run: mix deps.get
- name: Validate Formatting
run: mix format --check-formatted
- name: Compile
run: mix compile --warnings-as-errors
- name: Run Credo
run: mix credo --strict
- name: Run Tests
run: MIX_ENV=test mix coveralls.github