Skip to content

Commit 0b77123

Browse files
committed
fix: Upgrade GitHub Actions to v4 to fix Node.js 20 deprecation
- Update actions/checkout from v2 to v4 - Update actions/setup-java from v1 to v4 with Temurin distribution - Update Java matrix to LTS versions (8, 11, 17, 21)
1 parent a8174cc commit 0b77123

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/cd.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313

1414
steps:
1515
- name: Check out Git repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Install Java and Maven
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v4
2020
with:
21-
java-version: 1.8
21+
java-version: '8'
22+
distribution: 'temurin'
2223

2324
- name: Release Maven package
2425
uses: samuelmeuli/action-maven-publish@v1

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ jobs:
1212
name: Java ${{ matrix.java }} Test
1313
strategy:
1414
matrix:
15-
# test against latest update of each major Java version, as well as specific updates of LTS versions:
16-
java: [ 8, 10, 11, 12, 13, 14]
15+
# test against LTS versions supported by Temurin:
16+
java: [ '8', '11', '17', '21' ]
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919

2020
- name: Set up JDK ${{ matrix.java }}
21-
uses: actions/setup-java@v1
21+
uses: actions/setup-java@v4
2222
with:
2323
java-version: ${{ matrix.java }}
24+
distribution: 'temurin'
2425

2526
- name: Get latest release tag
2627
id: latest_release

0 commit comments

Comments
 (0)