-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 782 Bytes
/
Copy pathbuild.yml
File metadata and controls
30 lines (30 loc) · 782 Bytes
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
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
container:
image: elixir:1.9.4-slim
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- uses: actions/cache@v1
with:
path: _build/test
key: ${{ runner.os }}-test-build
restore-keys: |
${{ runner.os }}-test-build
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix test