Skip to content

Commit

Permalink
chore: use global npm for workspace tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Dec 4, 2023
1 parent 5909fdf commit 0659ff3
Show file tree
Hide file tree
Showing 35 changed files with 229 additions and 85 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmaccess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmaccess
run: npm run lint --ignore-scripts -w libnpmaccess
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmaccess
run: npm run postlint --ignore-scripts -w libnpmaccess

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmaccess
run: npm test --ignore-scripts -w libnpmaccess
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmdiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmdiff
run: npm run lint --ignore-scripts -w libnpmdiff
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmdiff
run: npm run postlint --ignore-scripts -w libnpmdiff

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmdiff
run: npm test --ignore-scripts -w libnpmdiff
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmexec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmexec
run: npm run lint --ignore-scripts -w libnpmexec
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmexec
run: npm run postlint --ignore-scripts -w libnpmexec

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmexec
run: npm test --ignore-scripts -w libnpmexec
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmfund.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmfund
run: npm run lint --ignore-scripts -w libnpmfund
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmfund
run: npm run postlint --ignore-scripts -w libnpmfund

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmfund
run: npm test --ignore-scripts -w libnpmfund
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmhook
run: npm run lint --ignore-scripts -w libnpmhook
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmhook
run: npm run postlint --ignore-scripts -w libnpmhook

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmhook
run: npm test --ignore-scripts -w libnpmhook
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmorg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmorg
run: npm run lint --ignore-scripts -w libnpmorg
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmorg
run: npm run postlint --ignore-scripts -w libnpmorg

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmorg
run: npm test --ignore-scripts -w libnpmorg
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmpack
run: npm run lint --ignore-scripts -w libnpmpack
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmpack
run: npm run postlint --ignore-scripts -w libnpmpack

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmpack
run: npm test --ignore-scripts -w libnpmpack
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmpublish
run: npm run lint --ignore-scripts -w libnpmpublish
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmpublish
run: npm run postlint --ignore-scripts -w libnpmpublish

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmpublish
run: npm test --ignore-scripts -w libnpmpublish
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmsearch
run: npm run lint --ignore-scripts -w libnpmsearch
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmsearch
run: npm run postlint --ignore-scripts -w libnpmsearch

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmsearch
run: npm test --ignore-scripts -w libnpmsearch
- name: Check Git Status
run: node scripts/git-dirty.js
14 changes: 11 additions & 3 deletions .github/workflows/ci-libnpmteam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
node-version: 20.x
check-latest: contains('20.x', '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Lint
run: node . run lint --ignore-scripts -w libnpmteam
run: npm run lint --ignore-scripts -w libnpmteam
- name: Post Lint
run: node . run postlint --ignore-scripts -w libnpmteam
run: npm run postlint --ignore-scripts -w libnpmteam

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
Expand Down Expand Up @@ -88,13 +92,17 @@ jobs:
node-version: ${{ matrix.node-version }}
check-latest: contains(matrix.node-version, '.x')
cache: npm
- name: Install Latest npm
uses: ./.github/actions/install-latest-npm
with:
node: ${{ steps.node.outputs.node-version }}
- name: Check Git Status
run: node scripts/git-dirty.js
- name: Reset Deps
run: node scripts/resetdeps.js
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w libnpmteam
run: npm test --ignore-scripts -w libnpmteam
- name: Check Git Status
run: node scripts/git-dirty.js
Loading

0 comments on commit 0659ff3

Please sign in to comment.