Skip to content

Commit e2d0f54

Browse files
committed
Update linters
1 parent a8b5801 commit e2d0f54

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ 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: 'Build'
4141
run: 'npm ci && npm run build'

.github/workflows/unit.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,13 @@ jobs:
3131

3232
- uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
3333
with:
34-
node-version: '20.x'
34+
node-version-file: 'package.json'
3535

3636
- name: 'npm ci'
3737
run: 'npm ci'
3838

3939
- name: 'npm build'
4040
run: 'npm run build'
4141

42-
- name: 'run lint'
43-
run: 'npm run 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-
4842
- name: 'test'
4943
run: 'npm test'

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"lint": "eslint .",
1212
"test": "node --require ts-node/register --test-reporter spec --test tests/setup-gcloud.test.ts"
1313
},
14+
"engines": {
15+
"node": "20.x",
16+
"npm": "10.x"
17+
},
1418
"repository": {
1519
"type": "git",
1620
"url": "https://github.com/google-github-actions/setup-gcloud"

0 commit comments

Comments
 (0)