forked from resteasy/resteasy
-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (106 loc) · 3.35 KB
/
resteasy-tck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# 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:
- 'pom.xml'
- 'providers/**'
- 'resteasy-bom/**'
- 'resteasy-cdi/**'
- 'resteasy-client/**'
- 'resteasy-client-api/**'
- 'resteasy-client-utils/**'
- 'resteasy-core/**'
- 'resteasy-core-spi/**'
- 'resteasy-dependencies-bom/**'
- 'resteasy-security/**'
- 'server-adapters/resteasy-undertow-cdi/**'
- 'wildfly/**'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/resteasy-tck.yml'
- 'pom.xml'
- 'providers/**'
- 'resteasy-bom/**'
- 'resteasy-cdi/**'
- 'resteasy-client/**'
- 'resteasy-client-api/**'
- 'resteasy-client-utils/**'
- 'resteasy-core/**'
- 'resteasy-core-spi/**'
- 'resteasy-dependencies-bom/**'
- 'resteasy-security/**'
- 'server-adapters/resteasy-undertow-cdi/**'
- 'wildfly/**'
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']
steps:
- name: Checkout RESTEasy
uses: actions/checkout@v4
with:
path: resteasy
- name: Checkout RESTEasy TCK Runner
uses: actions/checkout@v4
with:
repository: resteasy/resteasy-tck-runner
path: resteasy-tck-runner
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
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@v4
if: failure()
with:
name: test-reports-${{ matrix.os }}-${{ matrix.java }}
path: |
'**/surefire-reports/*'
'**/failsafe-reports/*'
- uses: actions/upload-artifact@v4
if: failure()
with:
name: server-logs-${{ matrix.os }}-${{ matrix.java }}
path: '**/server.log'