-
Notifications
You must be signed in to change notification settings - Fork 42
34 lines (34 loc) · 1 KB
/
test_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
name: Test Coverage
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
concurrency:
group: test-coverage-${{ github.event.number }}
cancel-in-progress: true
jobs:
test_coverage_job:
name: Test Code Coverage
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'microsoft'
- name: Generate Code Coverage Reports
run: ./gradlew jacocoTestReport
- name: Upload Core coverage to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/macos/codecov
chmod +x codecov
./codecov -f Core/build/jacoco/jacoco.xml -F core
- name: Upload CardPayments coverage to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/macos/codecov
chmod +x codecov
./codecov -f CardPayments/build/jacoco/jacoco.xml -F card