From 63b448be52a25c16c7323253ea445c3b79bc2a06 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Sat, 28 Sep 2024 09:54:48 -0500 Subject: [PATCH] Fixes #4033 - Add Inject TCK for Piranha Web Profile (#4034) --- .github/workflows/tck-webprofile.yml | 25 +++++++ external/webprofile-tck/atinject/pom.xml | 93 ++++++++++++++++++++++++ external/webprofile-tck/pom.xml | 4 + 3 files changed, 122 insertions(+) create mode 100644 external/webprofile-tck/atinject/pom.xml diff --git a/.github/workflows/tck-webprofile.yml b/.github/workflows/tck-webprofile.yml index 645f63674..528c754c6 100644 --- a/.github/workflows/tck-webprofile.yml +++ b/.github/workflows/tck-webprofile.yml @@ -16,6 +16,31 @@ on: - cron: "0 0 * * *" workflow_dispatch: jobs: + atinject: + 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: Setup for TCK + run: mvn -B -DskipTests=true -ntp install + - name: Run TCK + run: | + cd external/webprofile-tck/atinject + mvn -B -ntp verify + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: "external/webprofile-tck/atinject/target/tck/example/target/surefire-reports/TEST-*.xml" + if: always() jsonb: runs-on: ${{ matrix.os }} strategy: diff --git a/external/webprofile-tck/atinject/pom.xml b/external/webprofile-tck/atinject/pom.xml new file mode 100644 index 000000000..f6fd0900d --- /dev/null +++ b/external/webprofile-tck/atinject/pom.xml @@ -0,0 +1,93 @@ + + + + 4.0.0 + + + cloud.piranha.external.webprofiletck + project + 24.10.0-SNAPSHOT + + + inject-tck + pom + + Piranha Web Profile - Inject TCK + + + ${project.build.directory}/tck + + + + + + cloud.piranha + bom + ${project.version} + pom + import + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + pre-integration-test + pre-integration-test + + run + + + + Executing UNIX profile + + + + + + + + + + + + + + + + + + + integration-test + integration-test + + run + + + + + + + + + + + + + + + diff --git a/external/webprofile-tck/pom.xml b/external/webprofile-tck/pom.xml index 69529c8c7..70bdbd082 100644 --- a/external/webprofile-tck/pom.xml +++ b/external/webprofile-tck/pom.xml @@ -15,7 +15,11 @@ project pom Piranha - External - Web Profile TCK - Project + + 2.0.2 + + atinject jsonb jsonp