Skip to content

Commit a65c706

Browse files
authored
ci(github-actions): upgrade workflows to Node 24 action runtimes (#4268)
- Use actions/checkout@v6, actions/setup-node@v6, and actions/cache@v5 - Migrate release-please to googleapis/release-please-action@v4 with manifest config - Bump CodeQL, Codecov, peaceiris/gh-pages, oven-sh/setup-bun, denoland/setup-deno, and benchmark action - Disable setup-node package-manager cache where workflows use explicit actions/cache
1 parent 52161e3 commit a65c706

15 files changed

Lines changed: 80 additions & 58 deletions

.github/workflows/benchmark.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@ jobs:
3535
name: Performance regression check
3636

3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939

4040
# - name: Set up MySQL
4141
# run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_ROOT_PASSWORD=${{ env.MYSQL_PASSWORD }} -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/test/fixtures/custom-conf:/etc/mysql/conf.d -v $PWD/test/fixtures/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
4242
- name: Set up Node.js ${{ matrix.node-version }}
43-
uses: actions/setup-node@v4
43+
uses: actions/setup-node@v6
4444
with:
4545
node-version: ${{ matrix.node-version }}
46+
package-manager-cache: false
4647

4748
- name: Cache dependencies
48-
uses: actions/cache@v4
49+
uses: actions/cache@v5
4950
with:
5051
path: ~/.npm
5152
key: npm-linux-${{ hashFiles('package-lock.json') }}
@@ -61,15 +62,15 @@ jobs:
6162
run: node benchmarks/benchmark.js | tee output.txt
6263

6364
- name: Download previous benchmark data
64-
uses: actions/cache@v4
65+
uses: actions/cache@v5
6566
with:
6667
path: ./cache
6768
key: ${{ runner.os }}-benchmark-${{ github.sha }}
6869
restore-keys: |
6970
${{ runner.os }}-benchmark-
7071
7172
- name: Store benchmark result
72-
uses: benchmark-action/github-action-benchmark@v1
73+
uses: benchmark-action/github-action-benchmark@v1.22.0
7374
with:
7475
tool: 'benchmarkjs'
7576
output-file-path: output.txt

.github/workflows/canary.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Canary
1919
steps:
2020
- name: Actions - Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
with:
2323
fetch-depth: 0
2424

@@ -49,14 +49,15 @@ jobs:
4949
5050
- name: Actions - Setup Node.js
5151
if: steps.check_commit.outputs.publish == 'true'
52-
uses: actions/setup-node@v4
52+
uses: actions/setup-node@v6
5353
with:
5454
node-version: 22
5555
registry-url: 'https://registry.npmjs.org'
56+
package-manager-cache: false
5657

5758
- name: Cache dependencies
5859
if: steps.check_commit.outputs.publish == 'true'
59-
uses: actions/cache@v4
60+
uses: actions/cache@v5
6061
with:
6162
path: ~/.npm
6263
key: npm-linux-${{ hashFiles('package-lock.json') }}

.github/workflows/ci-build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ jobs:
3030

3131
name: Node.js ${{ matrix.node-version }}
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v6
3434

3535
- name: Set up Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@v6
3737
with:
3838
node-version: ${{ matrix.node-version }}
39+
package-manager-cache: false
3940

4041
- name: Cache dependencies
41-
uses: actions/cache@v4
42+
uses: actions/cache@v5
4243
with:
4344
path: ~/.npm
4445
key: npm-linux-${{ hashFiles('package-lock.json') }}

.github/workflows/ci-coverage.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,20 @@ jobs:
4444
name: Coverage ${{ matrix.node-version }} - DB ${{ matrix.mysql-version }}${{ matrix.mysql_connection_url_key }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}} Static Parser=${{matrix.static-parser}}
4545

4646
steps:
47-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@v6
4848

4949
- name: Set up MySQL
5050
if: ${{ matrix.mysql-version }}
5151
run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/test/fixtures/custom-conf:/etc/mysql/conf.d -v $PWD/test/fixtures/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
5252

5353
- name: Set up Node.js ${{ matrix.node-version }}
54-
uses: actions/setup-node@v4
54+
uses: actions/setup-node@v6
5555
with:
5656
node-version: ${{ matrix.node-version }}
57+
package-manager-cache: false
5758

5859
- name: Cache dependencies
59-
uses: actions/cache@v4
60+
uses: actions/cache@v5
6061
with:
6162
path: ~/.npm
6263
key: npm-linux-${{ hashFiles('package-lock.json') }}
@@ -74,7 +75,7 @@ jobs:
7475
timeout-minutes: 15
7576

7677
- name: Upload coverage reports to Codecov
77-
uses: codecov/codecov-action@v4
78+
uses: codecov/codecov-action@v6
7879
with:
7980
token: ${{ secrets.CODECOV_TOKEN }}
8081
flags: compression-${{ matrix.use-compression }},tls-${{ matrix.use-tls }},static-parser-${{ matrix.static-parser }}

.github/workflows/ci-linux.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,20 @@ jobs:
4242
name: Node.js ${{ matrix.node-version }} - DB ${{ matrix.mysql-version }}${{ matrix.mysql_connection_url_key }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}}
4343

4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v6
4646

4747
- name: Set up MySQL
4848
if: ${{ matrix.mysql-version }}
4949
run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/test/fixtures/custom-conf:/etc/mysql/conf.d -v $PWD/test/fixtures/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
5050

5151
- name: Set up Node.js ${{ matrix.node-version }}
52-
uses: actions/setup-node@v4
52+
uses: actions/setup-node@v6
5353
with:
5454
node-version: ${{ matrix.node-version }}
55+
package-manager-cache: false
5556

5657
- name: Cache dependencies
57-
uses: actions/cache@v4
58+
uses: actions/cache@v5
5859
with:
5960
path: ~/.npm
6061
key: npm-linux-${{ hashFiles('package-lock.json') }}
@@ -88,21 +89,22 @@ jobs:
8889
name: Bun ${{ matrix.bun-version }} - DB ${{ matrix.mysql-version }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}} Static Parser=${{matrix.static-parser}}
8990

9091
steps:
91-
- uses: actions/checkout@v4
92+
- uses: actions/checkout@v6
9293
- name: Set up MySQL
9394
run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/test/fixtures/custom-conf:/etc/mysql/conf.d -v $PWD/test/fixtures/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
9495

9596
- name: Set up Bun ${{ matrix.bun-version }}
96-
uses: oven-sh/setup-bun@v1
97+
uses: oven-sh/setup-bun@v2
9798
with:
9899
bun-version: ${{ matrix.bun-version }}
99100

100101
- name: Set up Node.js
101-
uses: actions/setup-node@v4
102+
uses: actions/setup-node@v6
102103
with:
103-
node-version: 20
104+
node-version: 22
105+
package-manager-cache: false
104106
- name: Cache dependencies
105-
uses: actions/cache@v4
107+
uses: actions/cache@v5
106108
with:
107109
path: ~/.npm
108110
key: npm-linux-${{ hashFiles('package-lock.json') }}
@@ -130,7 +132,7 @@ jobs:
130132
strategy:
131133
fail-fast: false
132134
matrix:
133-
deno-version: [v2.x]
135+
deno-version: ['2.x']
134136
mysql-version: ['mysql:8.3']
135137
use-compression: [0, 1]
136138
static-parser: [0, 1]
@@ -147,21 +149,22 @@ jobs:
147149
name: Deno ${{ matrix.deno-version }} - DB ${{ matrix.mysql-version }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}} Static Parser=${{matrix.static-parser}}
148150

149151
steps:
150-
- uses: actions/checkout@v4
152+
- uses: actions/checkout@v6
151153
- name: Set up MySQL
152154
run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/test/fixtures/custom-conf:/etc/mysql/conf.d -v $PWD/test/fixtures/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
153155

154156
- name: Set up Deno ${{ matrix.deno-version }}
155-
uses: denoland/setup-deno@v1
157+
uses: denoland/setup-deno@v2
156158
with:
157159
deno-version: ${{ matrix.deno-version }}
158160

159161
- name: Set up Node.js
160-
uses: actions/setup-node@v4
162+
uses: actions/setup-node@v6
161163
with:
162164
node-version: 22
165+
package-manager-cache: false
163166
- name: Cache dependencies
164-
uses: actions/cache@v4
167+
uses: actions/cache@v5
165168
with:
166169
path: ~/.npm
167170
key: npm-linux-${{ hashFiles('package-lock.json') }}

.github/workflows/ci-mysql.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,20 @@ jobs:
5555
name: ${{ matrix.mysql-version }}${{ matrix.mysql_connection_url_key }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}}
5656

5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@v6
5959

6060
- name: Set up MySQL
6161
if: ${{ matrix.mysql-version }}
6262
run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/test/fixtures/custom-conf:/etc/mysql/conf.d -v $PWD/test/fixtures/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
6363

6464
- name: Set up Node.js ${{ matrix.node-version }}
65-
uses: actions/setup-node@v4
65+
uses: actions/setup-node@v6
6666
with:
6767
node-version: ${{ matrix.node-version }}
68+
package-manager-cache: false
6869

6970
- name: Cache dependencies
70-
uses: actions/cache@v4
71+
uses: actions/cache@v5
7172
with:
7273
path: ~/.npm
7374
key: npm-linux-${{ hashFiles('package-lock.json') }}

.github/workflows/ci-osx.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
name: Node.js ${{ matrix.node-version }} - DB ${{ matrix.mysql-version }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}}
3636

3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939

4040
- name: Install MySQL
4141
run: |
@@ -46,12 +46,13 @@ jobs:
4646
run: brew services start mysql@8.0
4747

4848
- name: Set up Node.js ${{ matrix.node-version }}
49-
uses: actions/setup-node@v4
49+
uses: actions/setup-node@v6
5050
with:
5151
node-version: ${{ matrix.node-version }}
52+
package-manager-cache: false
5253

5354
- name: Cache dependencies
54-
uses: actions/cache@v4
55+
uses: actions/cache@v5
5556
with:
5657
path: ~/.npm
5758
key: npm-osx-${{ hashFiles('package-lock.json') }}

.github/workflows/ci-website.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Actions - Checkout
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Actions - Setup NodeJS
16-
uses: actions/setup-node@v4
16+
uses: actions/setup-node@v6
1717
with:
1818
node-version: 22
19+
package-manager-cache: false
1920

2021
- name: Cache Dependencies
21-
uses: actions/cache@v4
22+
uses: actions/cache@v5
2223
with:
2324
path: ~/.npm
2425
key: npm-website-${{ hashFiles('website/package-lock.json') }}

.github/workflows/ci-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
name: Node.js ${{ matrix.node-version }} - DB ${{ matrix.mysql-version }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}}
3737

3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@v6
4040
- name: Set up MySQL
4141
uses: shogo82148/actions-setup-mysql@v1
4242
with:
4343
mysql-version: ${{ matrix.mysql-version }}
4444

4545
- name: Set up Node.js ${{ matrix.node-version }}
46-
uses: actions/setup-node@v4
46+
uses: actions/setup-node@v6
4747
with:
4848
node-version: ${{ matrix.node-version }}
4949
cache: 'npm'

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v3
46+
uses: github/codeql-action/init@v4
4747
with:
4848
languages: ${{ matrix.language }}
4949
config-file: ./.github/codeql/codeql-config.yml
@@ -55,7 +55,7 @@ jobs:
5555
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5656
# If this step fails, then you should remove it and run the build manually (see below)
5757
- name: Autobuild
58-
uses: github/codeql-action/autobuild@v3
58+
uses: github/codeql-action/autobuild@v4
5959

6060
# ℹ️ Command-line programs to run using the OS shell.
6161
# 📚 https://git.io/JvXDl
@@ -69,4 +69,4 @@ jobs:
6969
# make release
7070

7171
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v3
72+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)