-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (31 loc) · 938 Bytes
/
action.yaml
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: olafurpg/setup-scala@v10
with:
java-version: 1.8
- name: Cache SBT # https://github.com/actions/cache/blob/master/examples.md#scala---sbt
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Run compile
run: sbt 'project ulid4s' +clean +update +compile
- name: Run tests
run: sbt 'project ulid4s' coverage test coverageReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
file: ./ulid4s/target/scala-2.13/scoverage-report/scoverage.xml