Skip to content

Commit eff291e

Browse files
committed
Test with 21
1 parent 831f72f commit eff291e

File tree

8 files changed

+46
-42
lines changed

8 files changed

+46
-42
lines changed

.github/workflows/checkstyle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
- name: "☁️ Checkout repository"
1818
uses: actions/checkout@v4
1919
- uses: actions/setup-python@v4
20-
- name: "🔧 Prepare environment"
21-
uses: graalvm/setup-graalvm@v1
20+
- name: "🔧 Setup java"
21+
uses: actions/setup-java@v4
2222
with:
23-
java-version: '25'
2423
distribution: 'graalvm'
24+
java-version: '21'
2525
github-token: ${{ secrets.GITHUB_TOKEN }}
2626
- run: ./gradlew checkstyle

.github/workflows/create-scheduled-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
with:
2828
distribution: 'graalvm'
2929
java-version: '21'
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
3031
- name: "🕸️ Get changed metadata matrix"
3132
id: set-matrix
3233
run: |
@@ -50,6 +51,7 @@ jobs:
5051
with:
5152
distribution: 'graalvm'
5253
java-version: '21'
54+
github-token: ${{ secrets.GITHUB_TOKEN }}
5355
- name: "Get tags"
5456
run: |
5557
PREVIOUS_RELEASE_TAG=$(git tag --list | sort -V | tail -1)

.github/workflows/scan-docker-images.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21-
- uses: graalvm/setup-graalvm@v1
21+
- uses: actions/setup-java@v4
2222
with:
23-
java-version: '25'
2423
distribution: 'graalvm'
24+
java-version: '21'
2525
github-token: ${{ secrets.GITHUB_TOKEN }}
2626
- name: "Install required tools"
2727
run: |
28-
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sudo sh -s -- -b /usr/local/bin
28+
curl -sSfL https://get.anchore.io/grype/v0.104.0/install.sh | sudo sh -s -- -b /usr/local/bin
2929
sudo apt-get install jq
3030
- name: "🔎 Check changed docker images"
3131
if: github.event_name == 'pull_request'

.github/workflows/test-all-metadata.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
steps:
2424
- name: "☁️ Checkout repository"
2525
uses: actions/checkout@v4
26-
- name: "🔧 Prepare environment"
27-
uses: graalvm/setup-graalvm@v1
26+
- name: "🔧 Setup java"
27+
uses: actions/setup-java@v4
2828
with:
29-
java-version: '17'
3029
distribution: 'graalvm'
30+
java-version: '21'
3131
github-token: ${{ secrets.GITHUB_TOKEN }}
3232
- name: "🕸️ Populate matrix"
3333
id: set-matrix
@@ -49,16 +49,17 @@ jobs:
4949
- name: "🔧 Setup java"
5050
uses: actions/setup-java@v4
5151
with:
52-
distribution: 'temurin'
53-
java-version: '25'
52+
distribution: 'graalvm'
53+
java-version: '21'
54+
github-token: ${{ secrets.GITHUB_TOKEN }}
5455
- name: "🔧 Prepare environment"
5556
uses: graalvm/setup-graalvm@v1
5657
with:
57-
set-java-home: 'false'
58-
java-version: ${{ matrix.version }}
5958
distribution: 'graalvm'
60-
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
java-version: ${{ matrix.version }}
60+
set-java-home: 'false'
6161
native-image-job-reports: 'true'
62+
github-token: ${{ secrets.GITHUB_TOKEN }}
6263
- name: "Pull allowed docker images"
6364
run: |
6465
./gradlew pullAllowedDockerImages -Pcoordinates=${{ matrix.coordinates }}

.github/workflows/test-changed-infrastructure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
32-
- name: "🔧 Prepare environment"
32+
- name: "🔧 Setup java"
3333
uses: graalvm/setup-graalvm@v1
3434
with:
35-
java-version: "17"
36-
distribution: "graalvm"
35+
distribution: 'graalvm'
36+
java-version: '21'
3737
github-token: ${{ secrets.GITHUB_TOKEN }}
3838
- name: "🕸️ Populate matrix"
3939
id: set-matrix
@@ -58,7 +58,7 @@ jobs:
5858
- name: "🔧 Setup java"
5959
uses: actions/setup-java@v4
6060
with:
61-
distribution: "oracle"
61+
distribution: "graalvm"
6262
java-version: "17"
6363

6464
- name: "🔧 Prepare environment"

.github/workflows/test-changed-metadata.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
29-
- name: "🔧 Prepare environment"
30-
uses: graalvm/setup-graalvm@v1
29+
- name: "🔧 Setup Java"
30+
uses: actions/setup-java@v4
3131
with:
32-
java-version: '25'
3332
distribution: 'graalvm'
33+
java-version: '21'
3434
github-token: ${{ secrets.GITHUB_TOKEN }}
3535
- name: "🕸️ Populate matrix"
3636
id: set-matrix
@@ -53,16 +53,17 @@ jobs:
5353
- name: "🔧 Setup java"
5454
uses: actions/setup-java@v4
5555
with:
56-
distribution: 'temurin'
57-
java-version: '25'
56+
distribution: 'graalvm'
57+
java-version: '21'
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
5859
- name: "🔧 Prepare environment"
5960
uses: graalvm/setup-graalvm@v1
6061
with:
61-
set-java-home: 'false'
62-
java-version: ${{ matrix.version }}
6362
distribution: 'graalvm'
64-
github-token: ${{ secrets.GITHUB_TOKEN }}
63+
java-version: ${{ matrix.version }}
64+
set-java-home: 'false'
6565
native-image-job-reports: 'true'
66+
github-token: ${{ secrets.GITHUB_TOKEN }}
6667
- name: "Pull allowed docker images"
6768
run: |
6869
./gradlew pullAllowedDockerImages -Pcoordinates=${{ matrix.coordinates }}

.github/workflows/verify-new-library-version-compatibility.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,18 @@ jobs:
7474
- name: "🔧 Setup java"
7575
uses: actions/setup-java@v4
7676
with:
77-
distribution: 'temurin'
78-
java-version: '25'
77+
distribution: 'graalvm'
78+
java-version: '21'
79+
github-token: ${{ secrets.GITHUB_TOKEN }}
7980

8081
- name: "🔧 Prepare environment"
8182
uses: graalvm/setup-graalvm@v1
8283
with:
83-
set-java-home: 'false'
84-
java-version: 25
8584
distribution: 'graalvm'
86-
github-token: ${{ secrets.GITHUB_TOKEN }}
85+
java-version: 25
86+
set-java-home: 'false'
8787
native-image-job-reports: 'true'
88+
github-token: ${{ secrets.GITHUB_TOKEN }}
8889

8990
- name: "Check for an existing issue and skip further testing if found"
9091
id: check_existing_issue

docs/DEVELOPING.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Always use the Gradle wrapper from the repository root:
1414
Prerequisites for most commands:
1515
- `JAVA_HOME` should be set to JDK 21 or later. GraalVM is recommended to match CI.
1616
- Docker (required for pulling/using allowed images during tests).
17+
- [`grype`](https://github.com/anchore/grype) version 0.104.0 for scanning docker images:
18+
```console
19+
curl -sSfL https://get.anchore.io/grype/v0.104.0/install.sh | sudo sh -s -- -b /usr/local/bin
20+
```
1721

1822
Tip: When debugging locally, add `--stacktrace` for better error output.
1923

@@ -51,7 +55,7 @@ For a single coordinate, CI runs three steps in this order:
5155
To exercise many tests at once, you can target all coordinates or a slice of the test space via the N/M shard syntax.
5256

5357
All coordinates:
54-
1. Pull Docker images:
58+
1. Test the whole repo:
5559
```console
5660
./gradlew pullAllowedDockerImages --coordinates=all
5761
./gradlew checkMetadataFiles --coordinates=all
@@ -88,20 +92,15 @@ These tasks support the scheduled workflow that checks newer upstream library ve
8892

8993
2. Mark a new tested version for a library
9094
```console
91-
./gradlew addTestedVersion --coordinates="group:artifact:newVersion" --lastSupportedVersion="oldVersion"`
95+
./gradlew addTestedVersion -Pcoordinates="group:artifact:newVersion" --lastSupportedVersion="oldVersion"
9296
```
9397
For example:
9498
```console
95-
./gradlew addTestedVersion --coordinates="org.postgresql:postgresql:42.7.4" --lastSupportedVersion="42.7.3"
99+
./gradlew addTestedVersion -Pcoordinates="org.postgresql:postgresql:42.7.4" --lastSupportedVersion="42.7.3"
96100
```
97101

98102
### Releases and Packaging
99103

100-
Run style/format checks first:
101-
```console
102-
./gradlew spotlessCheck
103-
```
104-
Then package:
105104
```console
106105
./gradlew package
107106
```
@@ -110,9 +109,9 @@ Then package:
110109

111110
- Style: `./gradlew checkstyle`
112111
- Format check: `./gradlew spotlessCheck`
113-
- Pull images (single lib): `./gradlew pullAllowedDockerImages --coordinates=group:artifact:version`
114-
- Check metadata (single lib): `./gradlew checkMetadataFiles --coordinates=group:artifact:version`
115-
- Test (single lib): `./gradlew test --coordinates=group:artifact:version`
112+
- Pull images (single lib): `./gradlew pullAllowedDockerImages --coordinates=[group:artifact:version|k/n|all]`
113+
- Check metadata (single lib): `./gradlew checkMetadataFiles --coordinates=[group:artifact:version|k/n|all]`
114+
- Test (single lib): `./gradlew test --coordinates=[group:artifact:version|k/n|all]`
116115
- Scan changed Docker images: `./gradlew checkAllowedDockerImages --baseCommit=<sha1> --newCommit=<sha2>`
117116
- Scan all Docker images: `./gradlew checkAllowedDockerImages`
118117
- List libs with newer versions: `./gradlew fetchExistingLibrariesWithNewerVersions --quiet`

0 commit comments

Comments
 (0)