Skip to content

Commit

Permalink
Upload junit and create test report
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Binns-Smith committed Feb 10, 2022
1 parent de54384 commit ae1c841
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ jobs:
- run: yarn --frozen-lockfile
- run: yarn build-native-release
- run: yarn test:unit
# Similar to
# https:/marketplace/actions/publish-unit-test-results#use-with-matrix-strategy
- name: Upload JUnit results
if: always()
uses: actions/upload-artifact@v2
with:
name: Unit tests (${{matrix.os}}, node ${{matrix.node}})
path: '**/junit-*.xml'

integration_tests:
name: Integration tests (${{matrix.os}}, Node ${{matrix.node}})
Expand All @@ -81,3 +89,22 @@ jobs:
- run: yarn --frozen-lockfile
- run: yarn build-native-release
- run: yarn test:integration-ci
# Similar to
# https:/marketplace/actions/publish-unit-test-results#use-with-matrix-strategy
- name: Upload JUnit results
if: always()
uses: actions/upload-artifact@v2
with:
name: Integration tests (${{matrix.os}}, node ${{matrix.node}})
path: '**/junit-*.xml'

test_report:
name: Test report
runs-on: ubuntu-latest
needs: [unit_tests, integration_tests]
if: always()
steps:
- name: Create test report
uses: mikepenz/action-junit-report@v2
with:
report_paths: artifacts/**/*.xml

0 comments on commit ae1c841

Please sign in to comment.