-
-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (41 loc) · 1.36 KB
/
coverage.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: Scala Coverage Testing
on:
workflow_dispatch:
jobs:
coverage:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: temurin
cache: sbt
- name: Set Up SBT
uses: sbt/setup-sbt@v1
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.112.0'
extended: true
- name: Coursier Caching
uses: coursier/cache-action@v6
- name: Coverage For JVM projects only
run: |
sbt -v clean coverage \
utils/Test/compile language/Test/compile passes/Test/compile diagrams/Test/compile \
commands/Test/compile riddlc/Test/compile \
utils/test language/test passes/test diagrams/test commands/test riddlc/test \
coverageAggregate coveralls
- name: Coverage Results Collection
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: |
- **/jvm/target/scala-3.4.3/scoverage-report/scoverage.xml
- **/target/scala-3.4.3/scoverage-report/scoverage.xml
- target/scala-3.4.3/scoverage-report/scoverage.xml