Skip to content

Commit

Permalink
Add a job to run the TCK.
Browse files Browse the repository at this point in the history
Signed-off-by: James R. Perkins <jperkins@redhat.com>
  • Loading branch information
jamezp committed Aug 10, 2023
1 parent 4dbbda1 commit 47fd16e
Showing 1 changed file with 115 additions and 0 deletions.
115 changes: 115 additions & 0 deletions .github/workflows/resteasy-tck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# 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: Jakarta REST TCK

on:
push:
branches:
- 'main'
paths-ignore:
- '.gitignore'
- ".github/workflows/manual-*.yml"
- ".mvn/**"
- "docbook/**"
- "distribution/**"
- "CODEOWNERS"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.adoc"
- "dco.txt"
- "LICENSE"
- "mvnw"
- "mvnw.cmd"
- "README.md"
- "SECURITY.md"
- "**/README.MD"
pull_request:
branches:
- '**'
paths-ignore:
- '.gitignore'
- ".github/workflows/manual-*.yml"
- ".mvn/**"
- "docbook/**"
- "distribution/**"
- "CODEOWNERS"
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.adoc"
- "dco.txt"
- "LICENSE"
- "mvnw"
- "mvnw.cmd"
- "README.md"
- "SECURITY.md"
- "**/README.MD"
schedule:
- cron: '0 0 * * *' # Every day at 00:00 UTC
workflow_dispatch:
inputs:
os:
description: "Runner OS"
required: true
default: "ubuntu-latest"
type: string
javaVersion:
description: "Java Version"
required: true
default: "17"
type: string

# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
run-tck:

runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
java: ['17', '21-ea']

steps:
- name: Checkout RESTEasy
uses: actions/checkout@v3
with:
path: resteasy
- name: Checkout RESTEasy TCK Runner
uses: actions/checkout@v3
with:
repository: resteasy/resteasy-tck-runner
path: resteasy-tck-runner
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Build RESTEasy - JDK ${{ matrix.java }}
id: resteasy-build
run: |
cd resteasy
mvn clean install -U -B -fae -DskipTests
RESTEASY_VERSION="$(mvn -B help:evaluate -Dexpression=project.version -DforceStdout -q)"
echo "RESTEASY_VERSION=$RESTEASY_VERSION"
echo "RESTEASY_VERSION=$RESTEASY_VERSION" >> "$GITHUB_OUTPUT"
- name: Run the Jakarta REST TCK - JDK ${{ matrix.java }}
run: |
echo "RESTEASY_VERSION=${{ steps.resteasy-build.outputs.RESTEASY_VERSION }}"
cd resteasy-tck-runner
mvn clean install -U -B -fae -Dtck.debug.log=true -Dversion.org.jboss.resteasy="${{ steps.resteasy-build.outputs.RESTEASY_VERSION }}"
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-reports-${{ matrix.os }}-${{ matrix.java }}
path: |
'**/surefire-reports/'
'**/failsafe-reports/'
- uses: actions/upload-artifact@v3
if: failure()
with:
name: server-logs-${{ matrix.os }}-${{ matrix.java }}
path: '**/server.log'

0 comments on commit 47fd16e

Please sign in to comment.