Skip to content

jacoco

jacoco #1

Workflow file for this run

name: Test Coverage
on: [push]
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install
- name: Run Tests and Generate Coverage Reports
run: mvn verify
- name: Upload Coverage to Code Climate
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
./cc-test-reporter format-coverage target/jacoco-ut.exec --input-type jacoco
./cc-test-reporter upload-coverage
./cc-test-reporter format-coverage target/jacoco-it.exec --input-type jacoco
./cc-test-reporter upload-coverage
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}