-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (40 loc) · 1.24 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
CI:
runs-on: ubuntu-18.04
container: heliumsystems/builder-erlang:2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cancel previous runs
if: ${{ !env.ACT }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Cache Hex Packages
if: ${{ !env.ACT }}
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.lock')) }}
restore-keys: |
${{ runner.os }}-hex-
- name: Cache Dialyzer PLTs
if: ${{ !env.ACT }}
uses: actions/cache@v1
with:
path: ~/.cache/rebar3/rebar3_*_plt
key: ${{ runner.os }}-dialyzer-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.config')) }}
restore-keys: |
${{ runner.os }}-dialyzer-
- name: Build
run: rebar3 compile
- name: Run tests
run: rebar3 as test do eunit,ct
# cover is broken on this repo, see
# https://github.com/erlang/otp/pull/4766