-
Notifications
You must be signed in to change notification settings - Fork 10
230 lines (185 loc) · 6.08 KB
/
Copy pathci.yml
File metadata and controls
230 lines (185 loc) · 6.08 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
##
## Copyright (C) 2025 Dremio Corporation
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
name: Build & Publish
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
# The setup-gradle action fails, if the wrapper is not using the right version or is not present.
# Our `gradlew` validates the integrity of the `gradle-wrapper.jar`, so it's safe to disable this.
validate-wrappers: false
- name: Gradle Build & Publish
run: |
./gradlew --continue --scan build publish -x intTest -x longTest
- name: Gradle OAuth2 Core Integration Tests
run: |
./gradlew --continue --scan :authmgr-oauth2-core:intTest
- name: Gradle Check Generated Docs
run: |
./gradlew --no-scan generateDocs
git diff --exit-code docs/configuration.md
if [ $? -ne 0 ]; then
echo "Generated documentation does not match existing documentation. Please run './gradlew generateDocs' and commit the changes."
exit 1
fi
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: build-test-results
path: |
**/build/test-results/**
long-tests:
runs-on: ubuntu-latest
name: Long Running Tests
permissions:
contents: read
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
validate-wrappers: false
- name: Gradle OAuth2 Core Long Tests
run: |
./gradlew --continue --scan :authmgr-oauth2-core:longTest -Dauthmgr.it.long.total=PT1M
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: long-tests-results
path: |
**/build/test-results/**
spark-tests:
runs-on: ubuntu-latest
name: Spark Tests
permissions:
contents: read
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
validate-wrappers: false
- name: Gradle Run Spark Tests
run: |
./gradlew --continue --scan \
:authmgr-oauth2-spark-tests:printTestMatrix \
:authmgr-oauth2-spark-tests:intTestMatrix
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: spark-tests-results
path: |
**/build/test-results/**
flink-tests:
runs-on: ubuntu-latest
name: Flink Tests
permissions:
contents: read
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
validate-wrappers: false
- name: Gradle Run Flink Tests
run: |
./gradlew --continue --scan \
:authmgr-oauth2-flink-tests:printTestMatrix \
:authmgr-oauth2-flink-tests:intTestMatrix
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: flink-tests-results
path: |
**/build/test-results/**
kafka-tests:
runs-on: ubuntu-latest
name: Kafka Tests
permissions:
contents: read
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
validate-wrappers: false
- name: Gradle Run Kafka Connect Tests
run: |
./gradlew --continue --scan \
:authmgr-oauth2-kafka-tests:printTestMatrix \
:authmgr-oauth2-kafka-tests:intTestMatrix
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: kafka-tests-results
path: |
**/build/test-results/**