Skip to content

Commit 335d42b

Browse files
committed
Run system tests on GitHub Actions
Closes gh-40446
1 parent 7bf20cf commit 335d42b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Run System Tests
2+
on:
3+
push:
4+
branches:
5+
- 3.1.x
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
jobs:
9+
run-system-tests:
10+
name: 'Java ${{ matrix.java.version}}'
11+
runs-on: ubuntu22-8-32
12+
if: ${{ github.repository == 'spring-projects/spring-boot' }}
13+
strategy:
14+
matrix:
15+
java:
16+
- version: 17
17+
toolchain: false
18+
- version: 21
19+
toolchain: true
20+
steps:
21+
- name: Check Out Code
22+
uses: actions/checkout@v4
23+
- name: Prepare Gradle Build
24+
uses: ./.github/actions/prepare-gradle-build
25+
with:
26+
java-version: ${{ matrix.java.version }}
27+
java-toolchain: ${{ matrix.java.toolchain }}
28+
- name: Run System Tests
29+
id: run-system-tests
30+
shell: bash
31+
env:
32+
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
33+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
34+
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
35+
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
36+
run: |
37+
./gradlew systemTest
38+
- name: Send Notification
39+
uses: ./.github/actions/send-notification
40+
if: always()
41+
with:
42+
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
43+
status: ${{ job.status }}
44+
build-scan-url: ${{ steps.run-system-tests.outputs.build-scan-url }}
45+
run-name: ${{ format('{0} | System Tests | Java {1}', github.ref_name, matrix.java.version) }}

0 commit comments

Comments
 (0)