-
Notifications
You must be signed in to change notification settings - Fork 135
62 lines (60 loc) · 1.66 KB
/
tests.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
58
59
60
61
62
name: tests
on: [push, pull_request]
jobs:
tests:
name: Run Tests
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
include:
- otp: '26'
elixir: '1.16'
global-mock: true
experimental: false
- otp: '26'
elixir: '1.16'
global-mock: false
experimental: false
- otp: "27"
elixir: "1.17"
global-mock: true
experimental: false
- otp: "27"
elixir: "1.17"
global-mock: false
experimental: false
- otp: "27.2"
elixir: "1.18.0-rc.0"
global-mock: true
experimental: true
- otp: "27.2"
elixir: "1.18.0-rc.0"
global-mock: false
experimental: true
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GLOBAL_MOCK: ${{ matrix.global-mock }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- run: mix deps.get
- uses: nick-invision/retry@v3
with:
timeout_minutes: 3
max_attempts: 3
shell: bash
command: mix coveralls.github