Skip to content

Commit 5030716

Browse files
authored
Update linters (#334)
1 parent 36f99de commit 5030716

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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'
@@ -56,7 +56,7 @@ jobs:
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'

.github/workflows/unit.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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 }}'

bin/runTests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ set -eEuo pipefail
1616
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(' '));")"
1717

1818
set -x
19+
20+
# shellcheck disable=SC2086
1921
exec node --require ts-node/register --test-reporter spec --test ${FILES}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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"

0 commit comments

Comments
 (0)