Skip to content

Commit b13d86b

Browse files
committed
Upgrade GitHub Actions for Node 24 compatibility
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
1 parent a5e1543 commit b13d86b

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# GITHUB_CONTEXT: ${{ toJson(github) }}
1515
# run: echo -e "$GITHUB_CONTEXT"
1616
- name: checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v6
1818
with:
1919
# checkout the PR head and not the merge branch at refs/pull/:prNumber/merge
2020
# see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
@@ -24,17 +24,19 @@ jobs:
2424
# to figure out what version this is. optimizing this is left as a challenge to future committers
2525
fetch-depth: 0
2626
- name: Set up JDK 1.8
27-
uses: actions/setup-java@v1
27+
uses: actions/setup-java@v5
28+
with:
29+
distribution: temurin # Added for actions/setup-java v2+ compatibility
2830
with:
2931
java-version: 1.8
3032
- name: create/restore gradle wrapper cache
3133
# see inspiration here - https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-gradle#caching-dependencies
32-
uses: actions/cache@v4
34+
uses: actions/cache@v5
3335
with:
3436
path: ~/.gradle/wrapper
3537
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
3638
- name: create/restore gradle cache
37-
uses: actions/cache@v4
39+
uses: actions/cache@v5
3840
with:
3941
path: ~/.gradle/caches
4042
key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}
@@ -61,12 +63,14 @@ jobs:
6163
runs-on: ubuntu-latest
6264
steps:
6365
- name: checkout code
64-
uses: actions/checkout@v2
66+
uses: actions/checkout@v6
6567
with:
6668
ref: ${{ github.event.pull_request.head.sha }}
6769
fetch-depth: 0
6870
- name: Set up latest LTS JDK
69-
uses: actions/setup-java@v1
71+
uses: actions/setup-java@v5
72+
with:
73+
distribution: temurin # Added for actions/setup-java v2+ compatibility
7074
with:
7175
java-version: 11
7276
- name: Build with Gradle

.github/workflows/push.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,24 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v6
1414
with:
1515
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag
1616
# to figure out what version this is. optimizing this is left as a challenge to future committers
1717
fetch-depth: 0
1818
- name: Set up JDK 1.8
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v5
20+
with:
21+
distribution: temurin # Added for actions/setup-java v2+ compatibility
2022
with:
2123
java-version: 1.8
2224
- name: create/restore gradle wrapper cache
23-
uses: actions/cache@v4
25+
uses: actions/cache@v5
2426
with:
2527
path: ~/.gradle/wrapper
2628
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
2729
- name: create/restore gradle cache
28-
uses: actions/cache@v4
30+
uses: actions/cache@v5
2931
with:
3032
path: ~/.gradle/caches
3133
key: gradle-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/*.gradle') }}

.github/workflows/tag.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v6
1515
with:
1616
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag
1717
# to figure out what version this is. optimizing this is left as a challenge to future committers
1818
fetch-depth: 0
1919
- name: Set up JDK 11
20-
uses: actions/setup-java@v1
20+
uses: actions/setup-java@v5
21+
with:
22+
distribution: temurin # Added for actions/setup-java v2+ compatibility
2123
with:
2224
java-version: 11
2325
- name: Build with Gradle

0 commit comments

Comments
 (0)