-
Notifications
You must be signed in to change notification settings - Fork 8
57 lines (53 loc) · 1.32 KB
/
elixir-build-and-test.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
53
54
55
56
57
name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
name: Build and test
runs-on: ubuntu-20.04
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
include:
- pair:
elixir: 1.11.4
otp: 21.3
build-flags:
- pair:
elixir: 1.12.3
otp: 22.3
build-flags:
- pair:
elixir: 1.13.4
otp: 23.3
build-flags: --warnings-as-errors
- pair:
elixir: 1.14.5
otp: 24.3
build-flags: --warnings-as-errors
- pair:
elixir: 1.15.7
otp: 25.3
- pair:
elixir: 1.15.7
otp: 26.2
build-flags: --warnings-as-errors
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Elixir Project
uses: ./.github/actions/elixir-setup
with:
elixir-version: ${{ matrix.pair.elixir }}
otp-version: ${{ matrix.pair.otp }}
build-flags: --all-warnings ${{ matrix.build-flags }}
- name: Run Tests
run: mix coveralls.github ${{ matrix.build-flags }}
if: always()