-
Notifications
You must be signed in to change notification settings - Fork 1.2k
57 lines (56 loc) · 2.12 KB
/
snapshots.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
name: Snapshots Check
on:
workflow_dispatch:
schedule:
- cron: "0 20 * * *"
permissions: read-all
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: [ 3.6.x, main ]
test-type:
- type: core
arguments: ":reactor-core:test --no-daemon -DuseSnapshotMicrometerVersion=true"
- type: other # includes java21Test and java9Test for 3.6+ / java11Test for 3.7+
arguments: "check -x :reactor-core:test -x spotlessCheck -x :reactor-core:jcstress -DuseSnapshotMicrometerVersion=true --no-daemon"
name: Test on ${{ matrix.branch }} - ${{ matrix.test-type.type }} tests
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4
with:
ref: ${{ matrix.branch }}
- name: Download Java 9
if: contains('3.6.x', matrix.branch)
run: ${GITHUB_WORKSPACE}/.github/setup.sh
shell: bash
- name: Setup Java 9
if: contains('3.6.x', matrix.branch)
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # tag=v3
with:
distribution: 'jdkfile'
java-version: 9.0.4
jdkFile: /opt/openjdk/java9/OpenJDK9U-jdk_x64_linux_hotspot_9.0.4_11.tar.gz
- name: Setup Java 11
if: contains('main', matrix.branch)
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # tag=v3
with:
distribution: 'temurin'
java-version: 11
- name: Setup Java 21
if: contains('main 3.6.x', matrix.branch)
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # tag=v3
with:
distribution: 'temurin'
java-version: 21
- name: Setup Java 8
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # tag=v3
with:
distribution: 'temurin'
java-version: 8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808
- name: Run Gradle Tests
run: ./gradlew ${{ matrix.test-type.arguments }}