|
28 | 28 | - name: Run tests |
29 | 29 | run: ./gradlew test --info |
30 | 30 |
|
31 | | - test-publish: |
| 31 | + publish-for-compatibility-tests: |
32 | 32 | runs-on: ubuntu-latest |
| 33 | + needs: build |
33 | 34 | steps: |
34 | 35 | - uses: actions/checkout@v4 |
35 | 36 | - uses: actions/setup-java@v4 |
|
42 | 43 | cache-read-only: ${{ github.ref != 'refs/heads/master' }} |
43 | 44 | cache-write-only: ${{ github.ref == 'refs/heads/master' }} |
44 | 45 |
|
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 }} |
0 commit comments