File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2727
2828 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
2929 with :
30- node-version : ' 20.x '
30+ node-version-file : ' package.json '
3131
3232 - name : ' npm build'
3333 run : ' npm ci && npm run build'
5656
5757 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
5858 with :
59- node-version : ' 20.x '
59+ node-version-file : ' package.json '
6060
6161 - name : ' npm build'
6262 run : ' npm ci && npm run build'
Original file line number Diff line number Diff line change @@ -35,17 +35,11 @@ jobs:
3535
3636 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
3737 with :
38- node-version : ' 20.x '
38+ node-version-file : ' package.json '
3939
4040 - name : ' npm build'
4141 run : ' npm ci && npm run build'
4242
43- - name : ' npm lint'
44- # There's no need to run the linter for each operating system, since it
45- # will find the same thing 3x and clog up the PR review.
46- if : ${{ matrix.os == 'ubuntu-latest' }}
47- run : ' npm run lint'
48-
4943 - uses : ' google-github-actions/auth@v2' # ratchet:exclude
5044 with :
5145 workload_identity_provider : ' ${{ vars.WIF_PROVIDER_NAME }}'
Original file line number Diff line number Diff line change @@ -16,4 +16,6 @@ set -eEuo pipefail
1616FILES=" $( node -e " process.stdout.write(require('node:fs').readdirSync('./', { recursive: true }).filter((e) => {return e.endsWith('.test.ts') && !e.startsWith('node_modules');}).sort().join(' '));" ) "
1717
1818set -x
19+
20+ # shellcheck disable=SC2086
1921exec node --require ts-node/register --test-reporter spec --test ${FILES}
Original file line number Diff line number Diff line change 1010 "format" : " eslint . --fix" ,
1111 "test" : " bash ./bin/runTests.sh"
1212 },
13+ "engines" : {
14+ "node" : " 20.x" ,
15+ "npm" : " 10.x"
16+ },
1317 "repository" : {
1418 "type" : " git" ,
1519 "url" : " https://github.com/google-github-actions/get-gke-credentials"
You can’t perform that action at this time.
0 commit comments