-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 1.15 KB
/
build.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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v13
with:
java-version: "adopt@1.11"
- name: Coursier cache
uses: coursier/cache-action@v6
- name: Build and Test
# run: sbt -v coverage test
run: sbt -v jadd-cli/test
# - name: Coverage report
# run: sbt coverageReport
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@260aa3b4b2f265b8578bc0e721e33ebf8ff53313
# with:
# fail_ci_if_error: true
- name: Cleanup
run: |
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true