summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-02-07 08:47:44 +1100
committerGitHub <noreply@github.com>2024-02-06 21:47:44 +0000
commit9955cbdb56d5aa7882048e06709695a137d2e3a5 (patch)
tree770560a57c89149a6fb75ed62ff1ed0c5ad784cd
parentc8b2af8ed1b27822b0e6193b7a82903f54e56d95 (diff)
chore: upgrade CI workflows to use Node 20 (#22304)
No longer uses Node 16, which is deprecated.
-rw-r--r--.github/mtime_cache/action.js6
-rw-r--r--.github/mtime_cache/action.yml2
-rw-r--r--.github/workflows/bench_cron.yml4
-rw-r--r--.github/workflows/cargo_publish.yml4
-rwxr-xr-x.github/workflows/ci.generate.ts8
-rw-r--r--.github/workflows/start_release.yml2
-rw-r--r--.github/workflows/version_bump.yml2
-rw-r--r--.github/workflows/wpt_epoch.yml2
8 files changed, 15 insertions, 15 deletions
diff --git a/.github/mtime_cache/action.js b/.github/mtime_cache/action.js
index bf77c2eb4..72821749e 100644
--- a/.github/mtime_cache/action.js
+++ b/.github/mtime_cache/action.js
@@ -1,9 +1,9 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This file contains the implementation of a Github Action. Github uses
-// Node.js v12.x to run actions, so this is Node code and not Deno code.
+// Node.js v20.x to run actions, so this is Node code and not Deno code.
const { spawn } = require("child_process");
-const fs = require("fs");
+const { existsSync } = require("fs");
const { utimes, mkdir, readFile, writeFile } = require("fs/promises");
const { dirname, resolve } = require("path");
const { StringDecoder } = require("string_decoder");
@@ -147,7 +147,7 @@ async function* ls(dir = "") {
break;
case "160000": // Git submodule.
// sometimes we don't checkout all submodules
- if (fs.existsSync(path)) {
+ if (existsSync(path)) {
yield* ls(path);
}
break;
diff --git a/.github/mtime_cache/action.yml b/.github/mtime_cache/action.yml
index f69085514..6d53b6c0e 100644
--- a/.github/mtime_cache/action.yml
+++ b/.github/mtime_cache/action.yml
@@ -7,4 +7,4 @@ inputs:
required: true
runs:
main: action.js
- using: node16
+ using: node20
diff --git a/.github/workflows/bench_cron.yml b/.github/workflows/bench_cron.yml
index c62a0f267..1a52a5ac5 100644
--- a/.github/workflows/bench_cron.yml
+++ b/.github/workflows/bench_cron.yml
@@ -24,7 +24,7 @@ jobs:
steps:
- name: Clone repository
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
@@ -32,7 +32,7 @@ jobs:
- uses: dsherret/rust-toolchain-file@v1
- name: Install protoc
- uses: arduino/setup-protoc@v2
+ uses: arduino/setup-protoc@v3
with:
version: "21.12"
repo-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/cargo_publish.yml b/.github/workflows/cargo_publish.yml
index 4b09a04c1..b34062cfc 100644
--- a/.github/workflows/cargo_publish.yml
+++ b/.github/workflows/cargo_publish.yml
@@ -20,7 +20,7 @@ jobs:
git config --global fetch.parallel 32
- name: Clone repository
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
token: ${{ secrets.DENOBOT_PAT }}
submodules: recursive
@@ -35,7 +35,7 @@ jobs:
deno-version: v1.31.3
- name: Install protoc
- uses: arduino/setup-protoc@v2
+ uses: arduino/setup-protoc@v3
with:
version: '21.12'
repo-token: '${{ secrets.GITHUB_TOKEN }}'
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 8d5ea86da..6ee7f7545 100755
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -141,7 +141,7 @@ const cloneRepoStep = [{
].join("\n"),
}, {
name: "Clone repository",
- uses: "actions/checkout@v3",
+ uses: "actions/checkout@v4",
with: {
// Use depth > 1, because sometimes we need to rebuild main and if
// other commits have landed it will become impossible to rebuild if
@@ -181,7 +181,7 @@ const installNodeStep = {
};
const installProtocStep = {
name: "Install protoc",
- uses: "arduino/setup-protoc@v2",
+ uses: "arduino/setup-protoc@v3",
with: { "version": "21.12", "repo-token": "${{ secrets.GITHUB_TOKEN }}" },
};
const installDenoStep = {
@@ -558,7 +558,7 @@ const ci = {
},
{
name: "Cache Cargo home",
- uses: "actions/cache@v3",
+ uses: "actions/cache@v4",
with: {
// See https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
// Note that with the new sparse registry format, we no longer have to cache a `.git` dir
@@ -990,7 +990,7 @@ const ci = {
{
// In main branch, always create a fresh cache
name: "Save cache build output (main)",
- uses: "actions/cache/save@v3",
+ uses: "actions/cache/save@v4",
if:
"(matrix.job == 'test' || matrix.job == 'lint') && github.ref == 'refs/heads/main'",
with: {
diff --git a/.github/workflows/start_release.yml b/.github/workflows/start_release.yml
index c17ac5148..0869800ad 100644
--- a/.github/workflows/start_release.yml
+++ b/.github/workflows/start_release.yml
@@ -31,7 +31,7 @@ jobs:
git config --global fetch.parallel 32
- name: Clone repository
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Install deno
uses: denoland/setup-deno@v1
diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml
index b13fc5221..6edb4ff84 100644
--- a/.github/workflows/version_bump.yml
+++ b/.github/workflows/version_bump.yml
@@ -31,7 +31,7 @@ jobs:
git config --global fetch.parallel 32
- name: Clone repository
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
token: ${{ secrets.DENOBOT_PAT }}
submodules: recursive
diff --git a/.github/workflows/wpt_epoch.yml b/.github/workflows/wpt_epoch.yml
index a25c0413c..d44d940f0 100644
--- a/.github/workflows/wpt_epoch.yml
+++ b/.github/workflows/wpt_epoch.yml
@@ -24,7 +24,7 @@ jobs:
steps:
- name: Clone repository
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false