Fixes #4593 - Add JSON Binding TCK certification for Piranha Core Pro… #186
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tck-coreprofile | |
on: | |
push: | |
branches: | |
- 'current' | |
schedule: | |
- cron: "0 0 * * 0" | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch / Tag' | |
required: true | |
default: 'current' | |
jobs: | |
annotations: | |
if: ${{ always() }} && github.repository == 'piranhacloud/piranha' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
java: [ '21' ] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Run Annotations TCK | |
run: | | |
mvn -B -DskipTests=true -DskipITs=true -ntp install | |
cd test/tck/coreprofile/annotations | |
mvn -B -ntp install | |
- name: Annotation TCK Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: "test/tck/coreprofile/annotations/runner/target/failsafe-reports/*IT.xml" | |
if: always() | |
inject: | |
if: ${{ always() }} && github.repository == 'piranhacloud/piranha' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
java: [ '21' ] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Run Inject TCK | |
run: | | |
mvn -B -DskipTests=true -DskipITs=true -ntp install | |
cd test/tck/coreprofile/inject | |
mvn -B -ntp install | |
- name: Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: "test/tck/coreprofile/inject/installer/target/tck/example/target/surefire-reports/TEST-*.xml" | |
if: always() | |
jsonb: | |
if: ${{ always() }} && github.repository == 'piranhacloud/piranha' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
java: [ '21' ] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Run JSON Binding TCK | |
run: | | |
mvn -B -DskipTests=true -DskipITs=true -ntp install | |
cd test/tck/coreprofile/jsonb | |
mvn -B -ntp install | |
- name: Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: "test/tck/coreprofile/jsonb/installer/target/tck/bin/target/surefire-reports/TEST-*.xml" | |
if: always() | |
result: | |
if: ${{ always() }} && github.repository == 'piranhacloud/piranha' | |
runs-on: ubuntu-latest | |
needs: [annotations, inject, jsonb] | |
steps: | |
- name: Check build results | |
run: | | |
result="${{ needs.build.result }}" | |
if [[ $result == "success" || $result == "skipped" ]]; then | |
echo "All matrix jobs were successful or skipped." | |
exit 0 | |
else | |
echo "One or more matrix jobs failed." | |
exit 0 | |
fi |