From 2347edba8620ccfab6476104205413baf55f9620 Mon Sep 17 00:00:00 2001 From: GracianoR Date: Fri, 14 Aug 2020 14:46:51 -0400 Subject: [PATCH] Add GitHub action to generate code report. Closes #968 Signed-off-by: GracianoR --- .github/workflows/coverage.yaml | 35 +++++++++++++++++++++++++++++++++ pom.xml | 8 +++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/coverage.yaml diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml new file mode 100644 index 0000000000..fe094d014c --- /dev/null +++ b/.github/workflows/coverage.yaml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Coverage Report + +on: + schedule: + - cron: '0 0 * * 0' + +jobs: + applications: + name: Coverage Report ${{ matrix.java-version }} + strategy: + matrix: + os: [ubuntu-latest] + java-version: [8] + + runs-on: ${{ matrix.os }} + + env: + JAVA_VERSION: ${{ matrix.java-version }} + + steps: + - uses: actions/checkout@v2 + - name: Set JDK ${{ matrix.java-version }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java-version }} + - name: Generate Coverage Report + run: mvn clean verify + - name: Archive Jacoco reports + uses: actions/upload-artifact@v1 + with: + name: jacoco-reports + path: test-coverage/target/site/jacoco-aggregate diff --git a/pom.xml b/pom.xml index 1b63aaca84..4d4977f55b 100644 --- a/pom.xml +++ b/pom.xml @@ -442,11 +442,17 @@ ${jacoco.plugin.version} - default-prepare-agent prepare-agent + + report + prepare-package + + report + +