Skip to content

Commit 40ca061

Browse files
authored
Auto-update Java version used in tests (#2097)
1 parent b1abab5 commit 40ca061

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/renovate.json5

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
ignorePresets: [
88
':ignoreModulesAndTests', // needed to keep maven-extension test pom files up-to-date
9+
'workarounds:javaLTSVersions', // Allow all Java major versions, not just LTS
910
],
1011
prHourlyLimit: 5, // we have a large number of parallel runners
1112
labels: [
@@ -170,11 +171,22 @@
170171
customType: 'regex',
171172
datasourceTemplate: 'npm',
172173
managerFilePatterns: [
173-
'/^.github/workflows//',
174+
'.github/workflows/**'
174175
],
175176
matchStrings: [
176177
'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)',
177178
],
178179
},
180+
{
181+
customType: 'regex',
182+
datasourceTemplate: 'java-version',
183+
managerFilePatterns: [
184+
'.github/workflows/**'
185+
],
186+
matchStrings: [
187+
'(?<currentValue>\\d+) # renovate: datasource=java-version',
188+
],
189+
depNameTemplate: 'java',
190+
},
179191
],
180192
}

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- 11
5555
- 17
5656
- 21
57-
- 23
57+
- 23 # renovate: datasource=java-version
5858
# macos-latest drops support for java 8 temurin. Run java 8 on macos-13. Run java 11, 17, 21 on macos-latest.
5959
exclude:
6060
- os: macos-latest
@@ -66,7 +66,7 @@ jobs:
6666
- os: macos-13
6767
test-java-version: 21
6868
- os: macos-13
69-
test-java-version: 23
69+
test-java-version: 23 # renovate: datasource=java-version
7070
steps:
7171
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7272

0 commit comments

Comments
 (0)