Skip to content

Commit

Permalink
chore: use fixed pnpm version in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Apr 24, 2023
1 parent a39f7a8 commit af4b150
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -11,27 +11,31 @@ jobs:
nodejs: [10, 12, 14, 16, 18]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: pnpm/action-setup@v2.2.4
with:
version: 7.13.5
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.nodejs }}

- name: Install
run: npm install
run: pnpm install

- name: (coverage) Install
if: matrix.nodejs >= 18
run: npm install -g c8
run: pnpm add -g c8

- name: Build
run: npm run build
run: pnpm run build

- name: Test
if: matrix.nodejs < 18
run: npm test
run: pnpm test

- name: (coverage) Test
if: matrix.nodejs >= 18
run: c8 --include=packages npm test
run: c8 --include=packages pnpm test

- name: (coverage) Report
if: matrix.nodejs >= 18
Expand Down

0 comments on commit af4b150

Please sign in to comment.