tck-coreprofile #209
This file contains hidden or 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: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch / Tag' | |
| required: true | |
| default: 'current' | |
| jobs: | |
| annotations: | |
| if: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| java: [ '21' ] | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| 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 -fae -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() | |
| cdi: | |
| if: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| java: [ '21' ] | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - name: Run TCK | |
| run: | | |
| mvn -B -DskipTests=true -DskipITs=true -ntp install | |
| cd test/tck/coreprofile/cdi | |
| mvn -B -fae -ntp install | |
| - name: Test Summary | |
| uses: test-summary/action@v2 | |
| id: test_summary | |
| with: | |
| paths: | | |
| test/tck/coreprofile/cdi/runner/core/target/surefire-reports/junitreports/TEST-*.xml | |
| test/tck/coreprofile/cdi/runner/model/target/surefire-reports/TEST-*.xml | |
| output: test-summary.md | |
| if: always() | |
| - name: Job Summary | |
| run: | | |
| echo "${{ steps.test_summary.outputs.passed }} out of ${{ steps.test_summary.outputs.total }} tests passed" >> $GITHUB_STEP_SUMMARY | |
| if: always() | |
| coreprofile: | |
| if: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| java: [ '21' ] | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - name: Run TCK | |
| run: | | |
| mvn -B -DskipTests=true -DskipITs=true -ntp install | |
| cd test/tck/coreprofile/coreprofile | |
| mvn -B -fae -ntp install | |
| - name: Test Summary | |
| uses: test-summary/action@v2 | |
| with: | |
| paths: "test/tck/coreprofile/coreprofile/runner/target/failsafe-reports/**/TEST-*.xml" | |
| if: always() | |
| inject: | |
| if: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| java: [ '21' ] | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| 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 -fae -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: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| java: [ '21' ] | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| 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 -fae -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() | |
| jsonp: | |
| if: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| java: [ '21' ] | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - name: Run TCK | |
| run: | | |
| mvn -B -DskipTests=true -DskipITs=true -ntp install | |
| cd test/tck/coreprofile/jsonp | |
| mvn -B -fae -ntp install | |
| - name: Test Summary | |
| uses: test-summary/action@v2 | |
| with: | |
| paths: | | |
| test/tck/coreprofile/jsonp/installer/target/tck/bin/tck-tests/target/surefire-reports/TEST-*.xml | |
| test/tck/coreprofile/jsonp/installer/target/tck/bin/tck-tests-pluggability/target/surefire-reports/TEST-*.xml | |
| if: always() | |
| rest: | |
| if: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| java: [ '21' ] | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - name: Run TCK | |
| run: | | |
| mvn -B -DskipTests=true -DskipITs=true -ntp install | |
| cd test/tck/coreprofile/rest | |
| mvn -B -fae -ntp install | |
| - name: Test Summary | |
| uses: test-summary/action@v2 | |
| id: test_summary | |
| with: | |
| paths: "test/tck/coreprofile/rest/runner/target/failsafe-reports/**/TEST-*.xml" | |
| output: test-summary.md | |
| if: always() | |
| - name: Job Summary | |
| run: | | |
| echo "${{ steps.test_summary.outputs.passed }} out of ${{ steps.test_summary.outputs.total }} tests passed" >> $GITHUB_STEP_SUMMARY | |
| if: always() | |
| result: | |
| if: github.repository == 'eclipse-ee4j/piranha' | |
| runs-on: ubuntu-latest | |
| needs: [annotations, cdi, coreprofile, inject, jsonb, jsonp, rest] | |
| steps: | |
| - name: Check build results | |
| run: | | |
| results=( | |
| "${{ needs.annotations.result }}" | |
| "${{ needs.cdi.result }}" | |
| "${{ needs.coreprofile.result }}" | |
| "${{ needs.inject.result }}" | |
| "${{ needs.jsonb.result }}" | |
| "${{ needs.jsonp.result }}" | |
| "${{ needs.rest.result }}" | |
| ) | |
| failed=0 | |
| for result in "${results[@]}"; do | |
| if [[ "$result" != "success" && "$result" != "skipped" ]]; then | |
| failed=1 | |
| break | |
| fi | |
| done | |
| if [[ $failed -eq 0 ]]; then | |
| echo "All TCK jobs were successful or skipped." | |
| exit 0 | |
| else | |
| echo "One or more TCK jobs failed." | |
| exit 0 | |
| fi |