-
Notifications
You must be signed in to change notification settings - Fork 124
53 lines (44 loc) · 1.17 KB
/
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
44
45
46
47
48
49
50
51
52
53
name: Tests
on:
push:
pull_request:
branches:
- main
env:
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
tests:
name: Run tests (${{ matrix.image }})
strategy:
fail-fast: false
matrix:
include:
- image: 1.6.6-erlang-21.3.8.24-debian-buster-20210902-slim
- image: 1.17.2-erlang-27.0.1-debian-bookworm-20240701-slim
runs-on: ubuntu-latest
container:
image: hexpm/elixir:${{ matrix.image }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Hex and Rebar setup
run: |
mix local.hex --force
mix local.rebar --force
- name: Restore deps and _build cache
uses: actions/cache@v2
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.image }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.image }}
- name: Install dependencies
run: mix deps.get --only test
- name: Run tests
run: |
epmd -daemon
mix test