Skip to content

Commit feb5038

Browse files
authored
Update CI node.js versions to 20.x (#8055)
Upgrade our CI scripts and workflows to work in Node 20.x: - Updated workflows to use node 20.x across the board - Updated tests which use the emualtor to connect to '127.0.0.1' explicitly instead of 'localhost', since newer versions of `node` treat `localhost` differently depending on the executing OS. For instance, `localhost` might resolve to the IPv6 address `::1`, but that's not the address that the emulators bind to. - Updated `packages/rules-unit-testing/functions/package.json` `engines` directive to define `>=16` instead of requiring `16` explicitly.
1 parent 245dd26 commit feb5038

31 files changed

+103
-101
lines changed

.changeset/violet-ways-judge.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/canary-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
with:
3232
# Canary release script requires git history and tags.
3333
fetch-depth: 0
34-
- name: Set up Node (16)
34+
- name: Set up Node (20)
3535
uses: actions/setup-node@v3
3636
with:
37-
node-version: 16.x
37+
node-version: 20.x
3838
- name: Yarn install
3939
run: yarn
4040
- name: Deploy canary

.github/workflows/check-changeset.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
with:
3535
# This makes Actions fetch all Git history so check_changeset script can diff properly.
3636
fetch-depth: 0
37-
- name: Set up Node (16)
37+
- name: Set up Node (20)
3838
uses: actions/setup-node@v3
3939
with:
40-
node-version: 16.x
40+
node-version: 20.x
4141
- name: Yarn install
4242
run: yarn
4343
- name: Run changeset script

.github/workflows/check-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
with:
2828
# get all history for the diff
2929
fetch-depth: 0
30-
- name: Set up Node (16)
30+
- name: Set up Node (20)
3131
uses: actions/setup-node@v3
3232
with:
33-
node-version: 16.x
33+
node-version: 20.x
3434
- name: Yarn install
3535
run: yarn
3636
- name: Run doc generation (devsite docs)

.github/workflows/check-pkg-paths.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
with:
2828
# This makes Actions fetch all Git history so run-changed script can diff properly.
2929
fetch-depth: 0
30-
- name: Set up Node (16)
30+
- name: Set up Node (20)
3131
uses: actions/setup-node@v3
3232
with:
33-
node-version: 16.x
33+
node-version: 20.x
3434
- name: Yarn install
3535
run: yarn
3636
- name: Yarn build

.github/workflows/deploy-config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
with:
3535
# This makes Actions fetch all Git history so run-changed script can diff properly.
3636
fetch-depth: 0
37-
- name: Set up node (18)
37+
- name: Set up node (20)
3838
uses: actions/setup-node@v3
3939
with:
40-
node-version: 18.x
40+
node-version: 20.x
4141
- name: Yarn install
4242
run: yarn
4343
- name: Deploy project config if needed

.github/workflows/e2e-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
steps:
3737
- name: Checkout Repo
3838
uses: actions/checkout@master
39-
- name: Set up Node (18)
39+
- name: Set up Node (20)
4040
uses: actions/setup-node@master
4141
with:
42-
node-version: 18.x
42+
node-version: 20.x
4343
- name: install Chrome stable
4444
run: |
4545
sudo apt-get update

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
with:
3232
# get all history for the diff
3333
fetch-depth: 0
34-
- name: Set up node (16)
34+
- name: Set up node (20)
3535
uses: actions/setup-node@v3
3636
with:
37-
node-version: 16.x
37+
node-version: 20.x
3838
- name: Yarn install
3939
run: yarn
4040
- name: Run formatting script

.github/workflows/health-metrics-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v3
4242
- uses: actions/setup-node@v3
4343
with:
44-
node-version: 16.x
44+
node-version: 20.x
4545
- uses: 'google-github-actions/auth@v0'
4646
with:
4747
credentials_json: '${{ secrets.GCP_SA_KEY }}'
@@ -58,7 +58,7 @@ jobs:
5858
- uses: actions/checkout@v3
5959
- uses: actions/setup-node@v3
6060
with:
61-
node-version: 16.x
61+
node-version: 20.x
6262
- uses: 'google-github-actions/auth@v0'
6363
with:
6464
credentials_json: '${{ secrets.GCP_SA_KEY }}'

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@v3
26-
- name: Set up node (16)
26+
- name: Set up node (20)
2727
uses: actions/setup-node@v3
2828
with:
29-
node-version: 16.x
29+
node-version: 20.x
3030
- name: yarn install
3131
run: yarn
3232
- name: yarn lint

0 commit comments

Comments
 (0)