-
Notifications
You must be signed in to change notification settings - Fork 92
63 lines (52 loc) · 1.83 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Publish TCK
on:
workflow_call:
inputs:
version:
required: true
description: Tag version to perform release
type: string
jobs:
publish-tck:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Disable older TCK jobs prior to 4.0 GA release
#- tck-version: "2.0.1"
#- tck-version: "3.0"
#- tck-version: "3.1.1"
- tck-version: "4.0.2"
name: MicroProfile OpenAPI TCK ${{ matrix.tck-version }}
steps:
- uses: actions/checkout@v4
name: checkout ${{inputs.version}}
with:
ref: ${{ inputs.version }}
- name: maven cache
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-tck-${{ matrix.tck-version }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- uses: actions/setup-java@v4
name: set up jdk
with:
distribution: 'temurin'
java-version: 17
- name: build with maven
run: mvn -B -pl 'testsuite/tck' -am install -DskipTests
- uses: actions/setup-java@v4
name: set up jdk
with:
distribution: 'temurin'
java-version: 11
- name: execute tck ${{ matrix.tck-version }}
run: mvn -B test -f testsuite/tck/pom.xml -Dsmallrye.commit=$(git rev-parse HEAD) -Dversion.eclipse.microprofile.openapi=${{ matrix.tck-version }}
- name: stage tck report
run: mv testsuite/tck/target/surefire-reports/microprofile-openapi-tck-report.html ./microprofile-openapi-tck-report-${{ matrix.tck-version }}.html
- name: upload tck report to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ inputs.version }} microprofile-openapi-tck-report-${{ matrix.tck-version }}.html