From 05331ae9927d487ed89733dcb32cb883a0b6bedf Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 20 Mar 2021 15:58:41 +0100 Subject: ci: Generate test reports for CI builds This change updates the Github Actions workflow configuration to generate test reports for the simulator CI builds. --- .github/workflows/build-simulator.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/build-simulator.yml b/.github/workflows/build-simulator.yml index 97054b89..1bee19bc 100644 --- a/.github/workflows/build-simulator.yml +++ b/.github/workflows/build-simulator.yml @@ -35,8 +35,25 @@ jobs: - name: Build with Gradle run: ./gradlew assemble - name: Check with Gradle - run: ./gradlew check codeCoverageReport --info - - uses: codecov/codecov-action@v1 + run: ./gradlew check codeCoverageReport + - name: Publish report + if: always() + uses: mikepenz/action-junit-report@v2 + with: + check_name: test (Java ${{ matrix.java }}) + report_paths: '**/build/test-results/test/TEST-*.xml' + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload artifacts + if: always() + uses: actions/upload-artifact@v2 + with: + name: reports-${{ matrix.os }}-jdk${{ matrix.java }} + path: | + ./**/build/reports/**/* + ./**/build/test-results/**/* + retention-days: 5 + - name: Upload code coverage + uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./simulator/build/reports/jacoco/report.xml -- cgit v1.2.3