Skip to content

Commit e931ebb

Browse files
Full test
1 parent 050a0d5 commit e931ebb

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
- name: Run tests
2929
run: ./gradlew test --info
3030

31-
test-publish:
31+
publish-for-compatibility-tests:
3232
runs-on: ubuntu-latest
33+
needs: build
3334
steps:
3435
- uses: actions/checkout@v4
3536
- uses: actions/setup-java@v4
@@ -42,5 +43,38 @@ jobs:
4243
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
4344
cache-write-only: ${{ github.ref == 'refs/heads/master' }}
4445

45-
- name: Publish to Maven Local
46-
run: ./gradlew publishToMavenLocal --info
46+
- name: Publish to test Maven repo
47+
run: ./gradlew publishAllPublicationsToTestMavenRepo --info
48+
49+
- name: Upload test Maven repo
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: test-maven-repo
53+
path: build/testMavenRepo
54+
55+
compatibility-tests:
56+
runs-on: ubuntu-latest
57+
needs: publish-for-compatibility-tests
58+
strategy:
59+
matrix:
60+
java-version: [8, 11, 17, 21 24]
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: actions/setup-java@v4
64+
with:
65+
distribution: 'temurin'
66+
java-version: ${{ matrix.java-version }}
67+
68+
- uses: gradle/actions/setup-gradle@v4
69+
with:
70+
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
71+
cache-write-only: ${{ github.ref == 'refs/heads/master' }}
72+
73+
- name: Download test Maven repo
74+
uses: actions/download-artifact@v4
75+
with:
76+
name: test-maven-repo
77+
path: build/testMavenRepo
78+
79+
- name: Run compatibility tests
80+
run: ./tests/run-compatibility-tests.sh rootProjects/basic_gradle_proj --ci-build-id=jdk${{ matrix.java-version }}

tests/tested-gradle-versions.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#7.6.5
1+
7.6.5
22
8.0.2
33
8.4
44
8.10.2
55
8.14.2
6-
# Coming soon...
7-
# 9.0.0
6+
9.0.0-rc-1

0 commit comments

Comments
 (0)