-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from bstansberry/Issue_39
[Issue_39] Add a Github action to build WildFly and run the TCK
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }}' |