-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (43 loc) · 1.3 KB
/
cross-version-tests.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
name: Cross version tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
provide-versions:
name: "Provide versions for testing"
runs-on: ubuntu-latest
steps:
- name: git clone
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/[email protected]
- name: Write version data
id: write-versions
run: "./gradlew :plugin:writeVersions"
- name: Export versions output
id: export-versions
run: echo "::set-output name=versions::$(cat subprojects/plugin/build/ci/gradle-versions.json)"
outputs:
versions: ${{ steps.export-versions.outputs.versions }}
cross-version-tests:
name: "Gradle cross version tests"
needs: provide-versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ${{ fromJson(needs.provide-versions.outputs.versions) }}
steps:
- name: git clone
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11
- name: Setup Gradle
uses: gradle/[email protected]
- name: "Test Gradle ${{ matrix.version }}"
run: "./gradlew :plugin:compatTest${{ matrix.version }}"