-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (37 loc) · 1022 Bytes
/
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
name: tests
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup elixir
uses: actions/[email protected]
with:
elixir-version: 1.9.x
otp-version: 22.x
- name: Checkout repository
uses: actions/checkout@v1
- name: Get deps cache
uses: actions/cache@v2
with:
path: deps/
key: ${{ runner.os }}-deps-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-deps-
- name: Get build cache
uses: actions/cache@v2
with:
path: _build/test/
key: ${{ runner.os }}-build-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-build-
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix compile
- name: Run Tests
run: |
mix coveralls.github