FBR-307: Disburse Loans by cheques (#198) #459
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |