-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (44 loc) · 1.22 KB
/
scala.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
name: Dahlia tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Tool versions
id: versions
run: |
echo "::set-output name=runt::$(grep ver runt.toml | awk '{print $3}' | tr -d '"')"
# Don't rebuild Dahlia if HEAD hash hasn't changed.
- name: Cache Dahlia
id: dahlia-cache
uses: actions/cache@v2
with:
path: |
./target
~/.sbt
~/.ivy/cache
key: dahlia-sources-${{ runner.os }}-${{ hashFiles( '**/build.sbt' ) }}
- name: Run SBT tests
run: |
sbt "; getHeaders; assembly; test"
- name: Cache runt
id: runt-cache
uses: actions/cache@v2
with:
path: ~/.cargo/bin/runt
key: runt-bin-${{ runner.os }}-${{ steps.versions.outputs.runt }}
- name: Install runt
if: steps.runt-cache.outputs.cache-hit != 'true'
uses: actions-rs/cargo@v1
with:
command: install
args: runt --version ${{ steps.versions.outputs.runt }}
- name: Runt tests
run: |
unset JAVA_TOOL_OPTIONS
runt -d -o fail