forked from FITER1/fineract-template
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.17 KB
/
codacy-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
name: FB - Codacy Coverage Reporter
on:
push:
branches:
- fiter/fb/dev
pull_request:
branches:
- fiter/fb/dev
jobs:
codacy-coverage-reporter:
name: Build and upload code coverage report
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: JDK 17 Setup
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Run Coverage
run: |
chmod +x gradlew
./gradlew clean bootJar
./gradlew :fineract-client:test -x spotlessCheck
./gradlew :fineract-provider:test -x spotlessCheck
- name: Merge coverage reports
run: |
chmod +x gradlew
./gradlew generateMergedReport
- name: Run codacy-coverage-reporter
continue-on-error: true
uses: codacy/codacy-coverage-reporter-action@master
with:
api-token: "${{ secrets.CODACY_API_TOKEN }}"
coverage-reports: ../fineract-template/build/reports/jacoco/generateMergedReport/generateMergedReport.xml