Skip to content

Commit

Permalink
[Issue_39] Use matrix builds when running the TCK
Browse files Browse the repository at this point in the history
  • Loading branch information
bstansberry committed Apr 2, 2024
1 parent 8a1d656 commit 5fd82ca
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/run-tck-against-wildfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ on:
required: true
default: "wildfly-galleon-pack"
type: string
jdk-matrix:
description: "Provide desired JDKs in stringified array format"
required: true
default: "['11','17','21']"
os-matrix:
description: "Provide desired OSs in stringified array format"
required: true
default: "['linux']"

jobs:
wildfly-build:
Expand All @@ -32,21 +40,28 @@ jobs:
tck-run:
runs-on: ubuntu-latest
needs: wildfly-build
name: '${{ matrix.JDK }} ${{ matrix.OS }}'
strategy:
fail-fast: false
matrix:
OS: ${{ fromJSON(github.event.inputs.os-matrix) }}
JDK: ${{ fromJSON(github.event.inputs.jdk-matrix) }}

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- 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: Set up JDK ${{ inputs.javaVersion }}
- name: Set up JDK ${{ matrix.JDK }}
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.javaVersion }}
java-version: ${{ matrix.JDK }}
distribution: 'temurin'
cache: 'maven'
- name: Run TCK on Linux with Java ${{ inputs.javaVersion }} using WildFly ${{ needs.wildfly-build.outputs.wildfly-version }}
- name: Run TCK on ${{ matrix.OS }} with Java ${{ matrix.JDK }} 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 5fd82ca

Please sign in to comment.