-
Notifications
You must be signed in to change notification settings - Fork 37
134 lines (106 loc) · 4.38 KB
/
review-release.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: SmallRye Pre Release
on:
pull_request:
paths:
- '.github/project.yml'
jobs:
release:
runs-on: ubuntu-latest
name: pre release
steps:
- uses: radcortez/project-metadata-action@main
name: retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
- name: Validate version
if: contains(steps.metadata.outputs.current-version, 'SNAPSHOT')
run: |
echo '::error::Cannot release a SNAPSHOT version.'
exit 1
- uses: radcortez/milestone-review-action@main
name: milestone review
with:
github-token: ${{secrets.GITHUB_TOKEN}}
milestone-title: ${{steps.metadata.outputs.current-version}}
integration-build-smallrye-health:
runs-on: ubuntu-latest
name: Integration - Build SmallRye Health
if: contains(github.event.pull_request.body, 'Breaking change') == false
outputs:
SNAPSHOT_VERSION: ${{ steps.version-step.outputs.SNAPSHOT_VERSION }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn -B javadoc:javadoc formatter:validate install
- id: version-step
name: Save version for integration builds
run: |
VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
echo "::set-output name=SNAPSHOT_VERSION::$VERSION"
- uses: actions/upload-artifact@v4
with:
name: smallrye-health
path: ~/.m2/repository/io/smallrye
integration-verification-quarkus:
runs-on: ubuntu-latest
name: Integration verification for Quarkus
if: contains(github.event.pull_request.body, 'Breaking change') == false
needs: integration-build-smallrye-health
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v4
with:
name: smallrye-health
path: ~/.m2/repository/io/smallrye
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven
- uses: actions/checkout@v2
name: Checkout Quarkus
with:
repository: quarkusio/quarkus
- name: Quarkus integration
env:
SNAPSHOT_VERSION: ${{ needs.integration-build-smallrye-health.outputs.SNAPSHOT_VERSION }}
run: |
./mvnw -Dquickly -Dsmallrye-health.version="$SNAPSHOT_VERSION"
./mvnw clean verify -pl extensions/smallrye-health/deployment -Dsmallrye-health.version="$SNAPSHOT_VERSION"
./mvnw clean verify -pl tcks/microprofile-health -Dtcks -Dsmallrye-health.version="$SNAPSHOT_VERSION"
integration-verification-wildfly:
runs-on: ubuntu-latest
name: Integration verification for WildFly
if: contains(github.event.pull_request.body, 'Breaking change') == false
needs: integration-build-smallrye-health
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v4
with:
name: smallrye-health
path: ~/.m2/repository/io/smallrye
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven
- uses: actions/checkout@v2
name: Checkout WildFly
with:
repository: wildfly/wildfly
- name: WildFly integration
env:
SNAPSHOT_VERSION: ${{ needs.integration-build-smallrye-health.outputs.SNAPSHOT_VERSION }}
run: |
./mvnw clean install -DskipTests -DskipITs -Denforcer.skip -Dversion.io.smallrye.smallrye-health="$SNAPSHOT_VERSION"
./mvnw clean verify -pl microprofile/health-smallrye -Dversion.io.smallrye.smallrye-health="$SNAPSHOT_VERSION"
./mvnw clean verify -pl testsuite/integration/microprofile -Dts.standalone.microprofile -Dversion.io.smallrye.smallrye-health="$SNAPSHOT_VERSION"
./mvnw clean verify -pl testsuite/integration/microprofile-tck/health -Dts.standalone.microprofile -Dversion.io.smallrye.smallrye-health="$SNAPSHOT_VERSION"
./mvnw clean verify -pl testsuite/integration/manualmode -Dts.manualmode -Dtest="MicroProfile*" -Dversion.io.smallrye.smallrye-health="$SNAPSHOT_VERSION"