-
Notifications
You must be signed in to change notification settings - Fork 66
43 lines (41 loc) · 1.08 KB
/
codecov.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
name: Coverage
on:
pull_request:
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '**/codecov.yml'
- '.scalafmt.conf'
- 'project/build.properties'
push:
branches:
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '**/codecov.yml'
- '.scalafmt.conf'
- 'project/build.properties'
jobs:
coverage:
name: Coverage test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Scala 2.13 test with coverage report
run: ./sbt "++ 2.13; coverage; projectJVM/test; projectJVM/coverageReport; projectJVM/coverageAggregate"
- uses: codecov/codecov-action@v5
with:
name: airframe-coverage
file: ./projectJVM/target/scoverage-report/scoverage.xml
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: ./projectJVM/target/scoverage-report