-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (39 loc) · 1.02 KB
/
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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
include:
- pair:
otp: 27
elixir: 1.17
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
- name: Install → Compile dependencies
run: |
MIX_ENV=test mix deps.get
MIX_ENV=test mix deps.compile
MIX_ENV=test mix compile
- name: Start epmd
run: |
epmd -daemon
- name: Run tests
run: |
MIX_ENV=test mix test
- name: Run tests with Telemetry
run: |
cd examples/tm
MIX_ENV=test mix deps.get
MIX_ENV=test mix test
- name: Run tests with OpenTelemetry
run: |
cd examples/otel
MIX_ENV=test mix deps.get
MIX_ENV=test mix test