Skip to content

Commit

Permalink
ci: update pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
hal-wang committed Apr 8, 2024
1 parent ce005f4 commit 08e1e55
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8
- run: npm run ci-test
Expand All @@ -33,7 +33,7 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install
Expand All @@ -48,7 +48,7 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install
Expand All @@ -65,7 +65,7 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install
Expand All @@ -85,7 +85,7 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8
- run: npm run ci-test
4 changes: 3 additions & 1 deletion test/services/deps.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import { FileService } from "../../src/services/file.service";

runTest(DepsService, async (ctx, service) => {
const deps = service.getPackageHalspDeps("@halsp/inject");
console.log("deps1", deps);
Array.isArray(deps).should.true;
(deps.length > 0).should.true;
deps.length.should.greaterThan(0);

const depPath: string = (service as any).getPackagePath("@halsp/inject");
const pkgPath = path.join("node_modules/@halsp/inject/package.json");
Expand All @@ -20,6 +21,7 @@ runTest(DepsService, async (ctx, service) => {

{
const deps = service["getDeps"](depPath, () => true);
console.log("deps2", deps);
Array.isArray(deps).should.true;
deps.length.should.greaterThan(0);
}
Expand Down

0 comments on commit 08e1e55

Please sign in to comment.