-
Notifications
You must be signed in to change notification settings - Fork 66
43 lines (41 loc) · 1.1 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@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Scala 2.13 test with coverage report
run: ./sbt "; coverage; projectJVM/test; projectJVM/coverageReport; projectJVM/coverageAggregate"
- uses: codecov/codecov-action@v3
with:
name: airframe-coverage
file: ./projectJVM/target/scala-2.13/scoverage-report/scoverage.xml
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: ./projectJVM/target/scala-2.13/scoverage-report