forked from meyercm/shorter_maps
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1009 Bytes
/
mix-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
name: Elixir Mix Tests
on:
push:
branches:
- master
- '**'
pull_request:
branches:
- '**'
env:
MIX_ENV: test
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['24.3', '25.3', '26.2', '27.0']
elixir: ['1.13.4', '1.14.5', '1.15.8', '1.16.3', '1.17.2']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get
- name: Cache deps
id: cache-deps
uses: actions/cache@v4
env:
cache-name: cache-elixir-deps
with:
path: deps
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ env.cache-name }}-
- name: Run tests
run: mix test