-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (44 loc) · 1.26 KB
/
elixir.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
name: Elixir
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
MIX_ENV: test
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [
1.13.4
]
otp: [
25.0
]
steps:
- uses: actions/checkout@v2
- name: Setup elixir
id: setup-beam
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v2
with:
path: |
deps
_build
# cache key is hierarchical: OS, otp-version, elixir-version, mix.lock
key: ${{ runner.os }}-mix-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
# restore keys are tried on cache misses, and only match the key prefix
restore-keys: |
${{ runner.os }}-mix-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-
${{ runner.os }}-mix-${{ steps.setup-beam.outputs.otp-version }}-
${{ runner.os }}-mix-
- name: Install Dependencies
run: mix deps.get
- name: Run Tests
run: mix test