Skip to content

Commit

Permalink
Switch github workflows to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
thieleju committed Mar 28, 2024
1 parent df1ab48 commit be095be
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ jobs:
with:
node-version: 20

- name: Install dependencies
run: npm ci
- name: Install pnpm and dependencies
run: |
npm install -g pnpm
pnpm i
- name: Run c8 code coverage
run: npm run cover
run: pnpm run cover

- name: Create coverage report directory
run: mkdir docs
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/mocha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ jobs:
with:
node-version: 20

- name: Install dependencies
run: npm ci
- name: Install pnpm and dependencies
run: |
npm install -g pnpm
pnpm i
- name: Run Mocha tests with junit-reporter
run: npm run test:junit
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ jobs:
with:
node-version: "20"

- name: Install dependencies
run: npm install
- name: Install pnpm and dependencies
run: |
npm install -g pnpm
pnpm i
- name: Build project
run: npm run build
run: pnpm run build

- name: Create zip from dist folder
run: |
Expand Down

0 comments on commit be095be

Please sign in to comment.