Skip to content

Commit

Permalink
Merge pull request #40 from bstansberry/Issue_39
Browse files Browse the repository at this point in the history
[Issue_39] Add a Github action to build WildFly and run the TCK
  • Loading branch information
bstansberry authored Apr 2, 2024
2 parents d300273 + bf68dc3 commit 74bec70
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/run-tck-against-wildfly
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 }}'

0 comments on commit 74bec70

Please sign in to comment.