Skip to content

Commit

Permalink
Update GitHub actions to run on Node 20 (#804)
Browse files Browse the repository at this point in the history
Update setup-java and cache actions from v3 to v4 to run on Node 20.
Update wrapper-validation-action from v1 to v2 to run on Node 20

Fixes CI warnings:

> Node.js 16 actions are deprecated.
> Please update the following actions to use Node.js 20:
> actions/wrapper-validation-action@v1, actions/setup-java@v3, actions/cache@v3.
> For more information see:
> https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

PR: #804
  • Loading branch information
TWiStErRob committed Feb 2, 2024
1 parent b02cda6 commit b21e7b8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v2

# Our basic build step as we want contributors to have a nice developer
# experience with little build time and sufficient feedback. Therefore, we
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
Expand All @@ -82,13 +82,13 @@ jobs:
# Sonar needs the whole Git history for issue assignment
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: 'gradle'
- name: Cache SonarCloud results
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.sonar/cache/
key: ubuntu-sonar
Expand All @@ -112,7 +112,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
shell: bash
run: echo "JDK_EXPERIMENTAL=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up supported Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
# Shipkit needs the whole Git history for changelog generation
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
# we build the Javadoc with JDK 17 (for better results),
# so install that as well
Expand Down

0 comments on commit b21e7b8

Please sign in to comment.