Skip to content

Commit 780f0eb

Browse files
committed
chore: use global npm for workspace tests
1 parent e92ec45 commit 780f0eb

35 files changed

+229
-85
lines changed

.github/workflows/ci-libnpmaccess.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmaccess
51+
run: npm run lint --ignore-scripts -w libnpmaccess
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmaccess
53+
run: npm run postlint --ignore-scripts -w libnpmaccess
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmaccess
106+
run: npm test --ignore-scripts -w libnpmaccess
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmdiff.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmdiff
51+
run: npm run lint --ignore-scripts -w libnpmdiff
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmdiff
53+
run: npm run postlint --ignore-scripts -w libnpmdiff
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmdiff
106+
run: npm test --ignore-scripts -w libnpmdiff
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmexec.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmexec
51+
run: npm run lint --ignore-scripts -w libnpmexec
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmexec
53+
run: npm run postlint --ignore-scripts -w libnpmexec
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmexec
106+
run: npm test --ignore-scripts -w libnpmexec
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmfund.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmfund
51+
run: npm run lint --ignore-scripts -w libnpmfund
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmfund
53+
run: npm run postlint --ignore-scripts -w libnpmfund
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmfund
106+
run: npm test --ignore-scripts -w libnpmfund
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmhook.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmhook
51+
run: npm run lint --ignore-scripts -w libnpmhook
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmhook
53+
run: npm run postlint --ignore-scripts -w libnpmhook
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmhook
106+
run: npm test --ignore-scripts -w libnpmhook
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmorg.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmorg
51+
run: npm run lint --ignore-scripts -w libnpmorg
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmorg
53+
run: npm run postlint --ignore-scripts -w libnpmorg
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmorg
106+
run: npm test --ignore-scripts -w libnpmorg
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmpack.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmpack
51+
run: npm run lint --ignore-scripts -w libnpmpack
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmpack
53+
run: npm run postlint --ignore-scripts -w libnpmpack
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmpack
106+
run: npm test --ignore-scripts -w libnpmpack
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmpublish.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmpublish
51+
run: npm run lint --ignore-scripts -w libnpmpublish
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmpublish
53+
run: npm run postlint --ignore-scripts -w libnpmpublish
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmpublish
106+
run: npm test --ignore-scripts -w libnpmpublish
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmsearch.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmsearch
51+
run: npm run lint --ignore-scripts -w libnpmsearch
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmsearch
53+
run: npm run postlint --ignore-scripts -w libnpmsearch
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmsearch
106+
run: npm test --ignore-scripts -w libnpmsearch
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

.github/workflows/ci-libnpmteam.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
node-version: 20.x
4040
check-latest: contains('20.x', '.x')
4141
cache: npm
42+
- name: Install Latest npm
43+
uses: ./.github/actions/install-latest-npm
44+
with:
45+
node: ${{ steps.node.outputs.node-version }}
4246
- name: Check Git Status
4347
run: node scripts/git-dirty.js
4448
- name: Reset Deps
4549
run: node scripts/resetdeps.js
4650
- name: Lint
47-
run: node . run lint --ignore-scripts -w libnpmteam
51+
run: npm run lint --ignore-scripts -w libnpmteam
4852
- name: Post Lint
49-
run: node . run postlint --ignore-scripts -w libnpmteam
53+
run: npm run postlint --ignore-scripts -w libnpmteam
5054

5155
test:
5256
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
@@ -88,13 +92,17 @@ jobs:
8892
node-version: ${{ matrix.node-version }}
8993
check-latest: contains(matrix.node-version, '.x')
9094
cache: npm
95+
- name: Install Latest npm
96+
uses: ./.github/actions/install-latest-npm
97+
with:
98+
node: ${{ steps.node.outputs.node-version }}
9199
- name: Check Git Status
92100
run: node scripts/git-dirty.js
93101
- name: Reset Deps
94102
run: node scripts/resetdeps.js
95103
- name: Add Problem Matcher
96104
run: echo "::add-matcher::.github/matchers/tap.json"
97105
- name: Test
98-
run: node . test --ignore-scripts -w libnpmteam
106+
run: npm test --ignore-scripts -w libnpmteam
99107
- name: Check Git Status
100108
run: node scripts/git-dirty.js

0 commit comments

Comments
 (0)