From bf68dc3b54042dbd79dbf96a0e2fca8330ab7bdf Mon Sep 17 00:00:00 2001 From: Brian Stansberry Date: Tue, 2 Apr 2024 15:20:59 -0500 Subject: [PATCH] [Issue_39] Add a Github action to build WildFly and run the TCK --- .github/workflows/run-tck-against-wildfly | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/run-tck-against-wildfly diff --git a/.github/workflows/run-tck-against-wildfly b/.github/workflows/run-tck-against-wildfly new file mode 100644 index 0000000..fe54ebf --- /dev/null +++ b/.github/workflows/run-tck-against-wildfly @@ -0,0 +1,52 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Run Jakarta MVC TCK against a WildFly build + +on: + workflow_dispatch: + inputs: + wildfly-branch: + description: "WildFly Branch/Tag" + required: true + default: "main" + type: string + wildfly-repo: + description: "WildFly Repository" + required: true + default: "wildfly/wildfly" + type: string + wildfly-feature-pack-artifactId: + description: "WildFly feature pack artifactId" + required: true + default: "wildfly-galleon-pack" + type: string + +jobs: + wildfly-build: + uses: wildfly/wildfly/.github/workflows/shared-wildfly-build.yml@main + with: + wildfly-branch: ${{ inputs.wildfly-branch }} + wildfly-repo: ${{ inputs.wildfly-repo }} + + tck-run: + runs-on: ubuntu-latest + needs: wildfly-build + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v3 + with: + name: wildfly-maven-repository + path: . + - name: Extract Maven Repo + shell: bash + run: | + tar -xzf wildfly-maven-repository.tar.gz -C ~ + - name: Set up JDK ${{ inputs.javaVersion }} + uses: actions/setup-java@v4 + with: + java-version: ${{ inputs.javaVersion }} + distribution: 'temurin' + cache: 'maven' + - name: Run TCK on Linux with Java ${{ inputs.javaVersion }} using WildFly ${{ needs.wildfly-build.outputs.wildfly-version }} + run: mvn clean verify -pl testsuite/tck '-Dbase.feature.pack.artifactId=${{ inputs.wildfly-feature-pack-artifactId }} -Dbase.feature.pack.version=${{ needs.wildfly-build.outputs.wildfly-version }}'