summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-03-20 15:58:41 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-03-20 16:33:01 +0100
commit05331ae9927d487ed89733dcb32cb883a0b6bedf (patch)
tree42740345293f57cfc139cb733f0e5cb2e1abfeb3 /.github
parent802b1211b8cf5c2f7fbcd251f2544761ed95c38a (diff)
ci: Generate test reports for CI builds
This change updates the Github Actions workflow configuration to generate test reports for the simulator CI builds.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-simulator.yml21
1 files changed, 19 insertions, 2 deletions
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