diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fc4443..3359273 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,3 +34,26 @@ jobs: - name: Run UI tests run: make test + + - name: Upload JUnit XML report + if: ${{ always() }} + uses: actions/upload-artifact@v7 + with: + name: junit-xml-${{ matrix.java }} + path: '**/target/surefire-reports/*.xml' + retention-days: 1 + if-no-files-found: warn + + push-test-results: + name: Push test results + if: ${{ always() }} + needs: [build-test] + uses: Staffbase/test-monitoring-connector-junit/.github/workflows/connector-junit.yml@a695b35c6b678742bc696a378dc9a307e96cebcd # includes module-fetch retry fix (test-monitoring-connector-junit#12) + with: + artifact-pattern: junit-xml-* + glob: '**/target/surefire-reports/*.xml' + connector-version: a695b35c6b678742bc696a378dc9a307e96cebcd # v2026.28.2 (per-test started_at fix) + app-id: ${{ vars.STAFFBASE_ACTIONS_CLIENT_ID }} + secrets: + service-secret: ${{ secrets.TEST_MONITORING_SERVICE_SECRET }} + app-private-key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }}