mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Run System Tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
jobs:
|
|
run-system-tests:
|
|
name: 'Java ${{ matrix.java.version}}'
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'spring-projects/spring-boot' }}
|
|
strategy:
|
|
matrix:
|
|
java:
|
|
- version: 17
|
|
toolchain: false
|
|
- version: 21
|
|
toolchain: true
|
|
steps:
|
|
- name: Check Out Code
|
|
uses: actions/checkout@v4
|
|
- name: Prepare Gradle Build
|
|
uses: ./.github/actions/prepare-gradle-build
|
|
with:
|
|
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
|
|
java-version: ${{ matrix.java.version }}
|
|
java-toolchain: ${{ matrix.java.toolchain }}
|
|
- name: Run System Tests
|
|
id: run-system-tests
|
|
shell: bash
|
|
run: ./gradlew systemTest
|
|
- name: Send Notification
|
|
uses: ./.github/actions/send-notification
|
|
if: always()
|
|
with:
|
|
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
|
|
status: ${{ job.status }}
|
|
build-scan-url: ${{ steps.run-system-tests.outputs.build-scan-url }}
|
|
run-name: ${{ format('{0} | System Tests | Java {1}', github.ref_name, matrix.java.version) }} |