Upload Surefire reports to Foresight (#16013)
This commit is contained in:
parent
ad7a36f537
commit
38db622822
2 changed files with 83 additions and 0 deletions
20
.github/actions/upload-surefire-reports/action.yml
vendored
Normal file
20
.github/actions/upload-surefire-reports/action.yml
vendored
Normal 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'
|
63
.github/workflows/ci.yml
vendored
63
.github/workflows/ci.yml
vendored
|
@ -49,6 +49,13 @@ jobs:
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: ./mvnw install -nsu -B -DskipTestsuite -DskipQuarkus -DskipExamples
|
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:
|
base-integration-tests:
|
||||||
name: Base IT
|
name: Base IT
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -71,6 +78,13 @@ jobs:
|
||||||
echo "Tests: $TESTS"
|
echo "Tests: $TESTS"
|
||||||
./mvnw install -nsu -B -Pauth-server-quarkus -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base | misc/log/trimmer.sh
|
./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:
|
quarkus-integration-tests:
|
||||||
name: Quarkus IT
|
name: Quarkus IT
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -99,6 +113,13 @@ jobs:
|
||||||
./mvnw install -nsu -B -pl quarkus/tests/integration -am -DskipTests
|
./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
|
./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:
|
jdk-integration-tests:
|
||||||
name: Java Distribution IT
|
name: Java Distribution IT
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -128,6 +149,13 @@ jobs:
|
||||||
echo "Tests: $TESTS"
|
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
|
./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:
|
new-store-integration-tests:
|
||||||
name: New Store IT
|
name: New Store IT
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -155,6 +183,13 @@ jobs:
|
||||||
echo "Tests: $TESTS"
|
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
|
./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:
|
legacy-store-integration-tests:
|
||||||
name: Legacy Store IT
|
name: Legacy Store IT
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -177,6 +212,13 @@ jobs:
|
||||||
echo "Tests: $TESTS"
|
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
|
./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:
|
store-model-tests:
|
||||||
name: Store Model Tests
|
name: Store Model Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -210,6 +252,13 @@ jobs:
|
||||||
run: |
|
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
|
./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:
|
fips-unit-tests:
|
||||||
name: FIPS UT
|
name: FIPS UT
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -228,6 +277,13 @@ jobs:
|
||||||
- name: Run crypto tests (BCFIPS approved mode)
|
- 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
|
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:
|
fips-integration-tests:
|
||||||
name: FIPS IT
|
name: FIPS IT
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -249,6 +305,13 @@ jobs:
|
||||||
echo "Tests: $TESTS"
|
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
|
./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:
|
check-set-status:
|
||||||
name: Set check conclusion
|
name: Set check conclusion
|
||||||
needs:
|
needs:
|
||||||
|
|
Loading…
Reference in a new issue