Skip to content

Commit cf2a975

Browse files
authored
Revert back to Node 16 for v1 series (#356)
1 parent f105ef0 commit cf2a975

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ on:
1818
push:
1919
branches:
2020
- 'main'
21+
- 'release/**/*'
2122
pull_request:
2223
branches:
2324
- 'main'
25+
- 'release/**/*'
2426
workflow_dispatch:
2527

2628
concurrency:
@@ -37,7 +39,7 @@ jobs:
3739

3840
- uses: 'actions/setup-node@v4'
3941
with:
40-
node-version: '20.x'
42+
node-version: '16.x'
4143

4244
- name: 'npm build'
4345
run: 'npm ci && npm run build'
@@ -65,7 +67,7 @@ jobs:
6567

6668
- uses: 'actions/setup-node@v4'
6769
with:
68-
node-version: '20.x'
70+
node-version: '16.x'
6971

7072
- name: 'npm build'
7173
run: 'npm ci && npm run build'
@@ -141,7 +143,7 @@ jobs:
141143

142144
- uses: 'actions/setup-node@v4'
143145
with:
144-
node-version: '20.x'
146+
node-version: '16.x'
145147

146148
- name: 'npm build'
147149
run: 'npm ci && npm run build'
@@ -216,7 +218,7 @@ jobs:
216218

217219
- uses: 'actions/setup-node@v4'
218220
with:
219-
node-version: '20.x'
221+
node-version: '16.x'
220222

221223
- name: 'npm build'
222224
run: 'npm ci && npm run build'

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,6 @@ branding:
186186
color: 'blue'
187187

188188
runs:
189-
using: 'node20'
189+
using: 'node16'
190190
main: 'dist/main/index.js'
191191
post: 'dist/post/index.js'

bin/runTests.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -eEuo pipefail
2+
set -eEuxo pipefail
33

44
#
55
# As of Node 20, the --test parameter does not support globbing, and it does not
@@ -13,7 +13,4 @@ set -eEuo pipefail
1313
# fed to the caller.
1414
#
1515

16-
FILES="$(node -e "process.stdout.write(require('node:fs').readdirSync('./', { recursive: true }).filter((e) => {return e.endsWith('.test.ts') && !e.startsWith('node_modules');}).sort().join(' '));")"
17-
18-
set -x
19-
exec node --require ts-node/register --test-reporter spec --test ${FILES}
16+
exec node --require ts-node/register --test ./tests/client/credentials_json_client.test.ts ./tests/client/workload_identity_client.test.ts ./tests/utils.test.ts

0 commit comments

Comments
 (0)