Skip to content

Commit 62f8d35

Browse files
committed
[ci] chore: run extensive integrations under linux only
These tests were supposed to be run only on the linux runners, but other runners have all the java version installed as well and ran these tests as well. This was not intended and lengthens the build time.
1 parent 5ae7ec8 commit 62f8d35

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ jobs:
153153
if: ${{ runner.os == 'Linux' }}
154154
with:
155155
name: compile-artifact
156-
- name: Build with Maven and run unit tests
156+
- name: Build with Maven and run unit and integration tests (linux)
157+
# under linux we execute more extensive integration tests with various java versions
158+
if: ${{ runner.os == 'Linux' }}
157159
run: |
158160
./mvnw --show-version --errors --batch-mode \
159161
-Dmaven.repo.local=.m2/repository \
@@ -163,6 +165,13 @@ jobs:
163165
-Djava11.home="${JAVA_HOME_11_X64}" \
164166
-Djava17.home="${JAVA_HOME_17_X64}" \
165167
-Djava25.home="${JAVA_HOME_25_X64}"
168+
- name: Build with Maven and run unit tests
169+
if: ${{ runner.os != 'Linux' }}
170+
run: |
171+
./mvnw --show-version --errors --batch-mode \
172+
-Dmaven.repo.local=.m2/repository \
173+
verify \
174+
-PfastSkip -Dcyclonedx.skip=false
166175
167176
dogfood:
168177
needs: compile

0 commit comments

Comments
 (0)