Skip to content

Commit

Permalink
Add tests for yarn and pnpm (bcomnes#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
FFdhorkin committed Sep 29, 2023
1 parent b47c59c commit 0beb474
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,30 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ['lts/*', 18]
package-manager: ['npm', 'pnpm', 'yarn']

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm i
- run: npm test
- name: Install pnpm
if: ${{ matrix.package-manager == 'pnpm' }}
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies via yarn
if: ${{ matrix.package-manager == 'yarn' }}
uses: bahmutov/npm-install@v1
with:
useLockFile: false
useYarn: true
install-command: yarn install
- name: Install dependencies
if: ${{ matrix.package-manager != 'yarn' }}
run: ${{ matrix.package-manager }} install
- run: ${{ matrix.package-manager }} run test
- uses: codecov/codecov-action@v3
if: ${{ github.event_name == 'pull_request' }}
with:
Expand Down

0 comments on commit 0beb474

Please sign in to comment.