mirror of https://github.com/grpc/grpc-java.git
.github/workflows: Bump action major versions from Node16 to Node20 (#11476)
GitHub began the Node16 deprecation process a year ago [1][2]. This commit updates all workflows to use the latest Node20 actions. [1]: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ [2]: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
This commit is contained in:
parent
9762945f81
commit
66075eab85
|
|
@ -9,5 +9,5 @@ jobs:
|
||||||
name: "Gradle wrapper validation"
|
name: "Gradle wrapper validation"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
- uses: gradle/actions/wrapper-validation@v4
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
lock:
|
lock:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v4
|
- uses: dessant/lock-threads@v5
|
||||||
with:
|
with:
|
||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
issue-inactive-days: 90
|
issue-inactive-days: 90
|
||||||
|
|
|
||||||
|
|
@ -21,14 +21,14 @@ jobs:
|
||||||
fail-fast: false # Should swap to true if we grow a large matrix
|
fail-fast: false # Should swap to true if we grow a large matrix
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.jre }}
|
java-version: ${{ matrix.jre }}
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
- name: Gradle cache
|
- name: Gradle cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: Maven cache
|
- name: Maven cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.m2/repository
|
~/.m2/repository
|
||||||
|
|
@ -46,7 +46,7 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
- name: Protobuf cache
|
- name: Protobuf cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/protobuf-cache
|
path: /tmp/protobuf-cache
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('buildscripts/make_dependencies.sh') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('buildscripts/make_dependencies.sh') }}
|
||||||
|
|
@ -55,7 +55,7 @@ jobs:
|
||||||
run: buildscripts/kokoro/unix.sh
|
run: buildscripts/kokoro/unix.sh
|
||||||
- name: Post Failure Upload Test Reports to Artifacts
|
- name: Post Failure Upload Test Reports to Artifacts
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Test Reports (JRE ${{ matrix.jre }})
|
name: Test Reports (JRE ${{ matrix.jre }})
|
||||||
path: |
|
path: |
|
||||||
|
|
@ -71,7 +71,9 @@ jobs:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
run: ./gradlew :grpc-all:coveralls -PskipAndroid=true -x compileJava
|
run: ./gradlew :grpc-all:coveralls -PskipAndroid=true -x compileJava
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
bazel:
|
bazel:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -79,7 +81,7 @@ jobs:
|
||||||
USE_BAZEL_VERSION: 6.0.0
|
USE_BAZEL_VERSION: 6.0.0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Check versions match in MODULE.bazel and repositories.bzl
|
- name: Check versions match in MODULE.bazel and repositories.bzl
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -87,7 +89,7 @@ jobs:
|
||||||
<(sed -n '/GRPC_DEPS_START/,/GRPC_DEPS_END/ {/GRPC_DEPS_/! p}' repositories.bzl)
|
<(sed -n '/GRPC_DEPS_START/,/GRPC_DEPS_END/ {/GRPC_DEPS_/! p}' repositories.bzl)
|
||||||
|
|
||||||
- name: Bazel cache
|
- name: Bazel cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cache/bazel/*/cache
|
~/.cache/bazel/*/cache
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue