Migrate the core-tck-runner for Jakarta EE 11 Core Profile. #11
Workflow file for this run
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
# This is a basic workflow that is manually triggered | |
name: Jakarta EE 11 Core Profile SNAPSHOT with WildFly | |
# Controls when the action will run. Workflow runs when manually triggered using the UI | |
# or API. | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'core-profile/**' | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- 'core-profile/**' | |
schedule: | |
- cron: '0 0 * * *' # Every day at 00:00 UTC | |
workflow_dispatch: | |
# Only run the latest job | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
wildfly-build: | |
uses: wildfly/wildfly/.github/workflows/shared-wildfly-build.yml@main | |
with: | |
wildfly-branch: 'main' | |
wildfly-repo: 'wildfly/wildfly' | |
coreprofile-snapshot-tck: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
needs: wildfly-build | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
java: ['17', '21'] | |
# Runner steps | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: 'wildfly-tck-runners' | |
- uses: actions/download-artifact@v4 | |
with: | |
name: wildfly-maven-repository | |
path: . | |
- name: Extract Maven Repo | |
shell: bash | |
run: tar -xzf wildfly-maven-repository.tar.gz -C ~ | |
- name: Setup Java JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: 'Checkout Jakarta Platform TCK' | |
uses: actions/checkout@v4 | |
with: | |
#repository: jakartaee/platform-tck | |
repository: jamezp/jakartaee-tck | |
path: 'platform-tck' | |
ref: 'build-update' | |
- name: Build Jakarta Platform TCK | |
run: | | |
cd platform-tck | |
mvn clean install -DskipTests -Pstaging -Dsignature -Dmaven.compiler.target=17 -Dmaven.compiler.source=17 -Dmaven.build.cache.enabled=false | |
PLATFORM_TCK_VERSION="$(mvn -B help:evaluate -Dexpression=project.version -DforceStdout -q)" | |
export PLATFORM_TCK_VERSION | |
- name: Build with Maven Java ${{ matrix.java }} on WildFly | |
run: | | |
cd wildfly-tck-runners/core-profile | |
mvn -B clean verify -Dversion.org.wildfly=${{ needs.wildfly-build.outputs.wildfly-version }} -fae -Pstaging -Dskip.tck.setup -Dcore.profile.sigtest.classifier=sigtest -Dversion.jakarta.platform.core.profile.tck.version=${{ env.PLATFORM_TCK_VERSION }} | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-reports-${{ matrix.java }} | |
path: | | |
'**/surefire-reports/' | |
'**/failsafe-reports/' | |