Upload Surefire reports to Foresight (#16013)

This commit is contained in:
Stian Thorgersen 2022-12-15 14:22:20 +01:00 committed by GitHub
parent ad7a36f537
commit 38db622822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,20 @@
name: Upload Surefire reports
description: Upload Surefire reports to Foresight
inputs:
api-key:
description: Foresight API key
required: false
runs:
using: composite
steps:
- id: upload-to-foresight
name: Upload Surefire reports to Foresight
uses: runforesight/foresight-test-kit-action@v1.3.1
if: github.repository == 'keycloak/keycloak'
with:
api_key: ${{ inputs.api-key }}
test_format: JUNIT
test_framework: JUNIT
test_path: '**/target/surefire-reports/*.xml'

View File

@ -49,6 +49,13 @@ jobs:
- name: Run unit tests
run: ./mvnw install -nsu -B -DskipTestsuite -DskipQuarkus -DskipExamples
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
base-integration-tests:
name: Base IT
needs: build
@ -71,6 +78,13 @@ jobs:
echo "Tests: $TESTS"
./mvnw install -nsu -B -Pauth-server-quarkus -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
quarkus-integration-tests:
name: Quarkus IT
needs: build
@ -99,6 +113,13 @@ jobs:
./mvnw install -nsu -B -pl quarkus/tests/integration -am -DskipTests
./mvnw test -nsu -B -pl quarkus/tests/integration ${PARAMS["${{ matrix.server }}"]} | misc/log/trimmer.sh
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
jdk-integration-tests:
name: Java Distribution IT
needs: build
@ -128,6 +149,13 @@ jobs:
echo "Tests: $TESTS"
./mvnw install -nsu -B -Pauth-server-quarkus -Pdb-${{ matrix.db }} -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
new-store-integration-tests:
name: New Store IT
needs: build
@ -155,6 +183,13 @@ jobs:
echo "Tests: $TESTS"
./mvnw install -nsu -B -Pauth-server-quarkus ${PARAMS["${{ matrix.db }}"]} -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
legacy-store-integration-tests:
name: Legacy Store IT
needs: build
@ -177,6 +212,13 @@ jobs:
echo "Tests: $TESTS"
./mvnw install -nsu -B -Pauth-server-quarkus -Pdb-${{ matrix.db }} -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
store-model-tests:
name: Store Model Tests
runs-on: ubuntu-latest
@ -210,6 +252,13 @@ jobs:
run: |
./mvnw install -nsu -B -Pauth-server-cluster-quarkus -Dsession.cache.owners=2 -Dtest=**.cluster.** -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
fips-unit-tests:
name: FIPS UT
runs-on: ubuntu-latest
@ -228,6 +277,13 @@ jobs:
- name: Run crypto tests (BCFIPS approved mode)
run: ./mvnw install -nsu -B -am -pl crypto/default,crypto/fips1402,crypto/elytron -Dcom.redhat.fips=true -Dorg.bouncycastle.fips.approved_only=true
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
fips-integration-tests:
name: FIPS IT
needs: build
@ -249,6 +305,13 @@ jobs:
echo "Tests: $TESTS"
./mvnw install -nsu -B -Pauth-server-quarkus,auth-server-fips140-2 -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh
- id: upload-surefire-reports
name: Upload Surefire reports
uses: ./.github/actions/upload-surefire-reports
if: always()
with:
api-key: ${{ secrets.FORESIGHT_API_KEY }}
check-set-status:
name: Set check conclusion
needs: