Skip to content

Commit

Permalink
Fixes #4601 - Add Jakarta CDI TCK certification for Piranha Core Prof…
Browse files Browse the repository at this point in the history
…ile (#4602)
  • Loading branch information
mnriem authored Feb 17, 2025
1 parent 56e7640 commit bcff672
Show file tree
Hide file tree
Showing 18 changed files with 1,255 additions and 6 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/tck-coreprofile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,39 @@ jobs:
run: |
mvn -B -DskipTests=true -DskipITs=true -ntp install
cd test/tck/coreprofile/annotations
mvn -B -ntp install
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: ${{ 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 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
with:
paths: |
cdi/runner/core/target/surefire-reports/junitreports/TEST-*.xml
cdi/runner/model/target/surefire-reports/TEST-*.xml
if: always()
coreprofile:
if: ${{ always() }} && github.repository == 'piranhacloud/piranha'
runs-on: ${{ matrix.os }}
Expand All @@ -53,7 +80,7 @@ jobs:
run: |
mvn -B -DskipTests=true -DskipITs=true -ntp install
cd test/tck/coreprofile/coreprofile
mvn -B -ntp install
mvn -B -fae -ntp install
- name: Test Summary
uses: test-summary/action@v2
with:
Expand All @@ -78,7 +105,7 @@ jobs:
run: |
mvn -B -DskipTests=true -DskipITs=true -ntp install
cd test/tck/coreprofile/inject
mvn -B -ntp install
mvn -B -fae -ntp install
- name: Test Summary
uses: test-summary/action@v2
with:
Expand All @@ -103,7 +130,7 @@ jobs:
run: |
mvn -B -DskipTests=true -DskipITs=true -ntp install
cd test/tck/coreprofile/jsonb
mvn -B -ntp install
mvn -B -fae -ntp install
- name: Test Summary
uses: test-summary/action@v2
with:
Expand All @@ -128,7 +155,7 @@ jobs:
run: |
mvn -B -DskipTests=true -DskipITs=true -ntp install
cd test/tck/coreprofile/jsonp
mvn -B -ntp install
mvn -B -fae -ntp install
- name: Test Summary
uses: test-summary/action@v2
with:
Expand All @@ -155,7 +182,7 @@ jobs:
run: |
mvn -B -DskipTests=true -DskipITs=true -ntp install
cd test/tck/coreprofile/rest
mvn -B -ntp install
mvn -B -fae -ntp install
- name: Test Summary
uses: test-summary/action@v2
id: test_summary
Expand Down
51 changes: 51 additions & 0 deletions test/tck/coreprofile/cdi/installer/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>

<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cloud.piranha.test.tck.coreprofile.cdi</groupId>
<artifactId>project</artifactId>
<version>25.3.0-SNAPSHOT</version>
</parent>
<artifactId>installer</artifactId>
<packaging>pom</packaging>
<name>Piranha - Test - TCK - Core Profile - CDI TCK - Installer</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>pre-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Download, unzip and rename TCK -->
<get src="https://download.eclipse.org/jakartaee/cdi/4.1/cdi-tck-${cdi.tck.version}-dist.zip"
dest="${project.build.directory}/tck.zip"
skipexisting="true"/>
<unzip src="${project.build.directory}/tck.zip"
dest="${project.build.directory}"/>
<move file="${project.build.directory}/cdi-tck-${cdi.tck.version}"
tofile="${project.build.directory}/tck"/>

<!-- Install the TCK artifacts into local repository -->
<exec dir="${project.build.directory}/tck/artifacts"
executable="mvn">
<arg value="install"/>
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
21 changes: 21 additions & 0 deletions test/tck/coreprofile/cdi/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>

<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cloud.piranha.test.tck.coreprofile</groupId>
<artifactId>project</artifactId>
<version>25.3.0-SNAPSHOT</version>
</parent>
<groupId>cloud.piranha.test.tck.coreprofile.cdi</groupId>
<artifactId>project</artifactId>
<packaging>pom</packaging>
<name>Piranha - Test - TCK - Core Profile - CDI TCK - Project</name>
<modules>
<module>installer</module>
<module>runner</module>
</modules>
</project>
Loading

0 comments on commit bcff672

Please sign in to comment.