-
Notifications
You must be signed in to change notification settings - Fork 37
42 lines (37 loc) · 1.06 KB
/
publish-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
name: Publish TCK
on:
workflow_call:
inputs:
version:
required: true
description: Tag version to perform release
type: string
jobs:
publish-tck:
name: Publish TCK
runs-on: ubuntu-latest
strategy:
matrix:
java:
- 11
- 17
- 21
steps:
- name: Checkout ${{ inputs.version }}
uses: actions/checkout@v4
with:
ref: ${{ inputs.version }}
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Run TCK and generate report for JDK ${{ matrix.java }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZIP_NAME: smallrye-fault-tolerance-${{ inputs.version }}-tck-results-java-${{ matrix.java }}.zip
run: |
mvn -s .github/maven-ci-settings.xml -B formatter:validate verify --file pom.xml -Dpublish-tck
cd testsuite/tck/target
zip -r $ZIP_NAME surefire-reports/
gh release upload ${{ inputs.version }} $ZIP_NAME