-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (30 loc) · 851 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
name: CI
on: ['push', 'pull_request']
jobs:
ci:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
elixir: [1.9.x, 1.8.x, 1.7.x]
otp: [22.3, 21.2, 20.2]
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: CI - Elixir ${{ matrix.elixir }} - OTP ${{ matrix.otp }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install Mix dependencies
run: mix deps.get
- name: Upload coverage to Coveralls
run: mix coveralls.github
- name: Install Mix dependencies
run: MIX_ENV=docs mix deps.get
- name: Upload report to Inch
run: MIX_ENV=docs mix inch.report