| 1 |
name: Test packages |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
push: |
| 6 |
pull_request: |
| 7 |
|
| 8 |
jobs: |
| 9 |
test: |
| 10 |
runs-on: ubuntu-latest |
| 11 |
strategy: |
| 12 |
matrix: |
| 13 |
node-version: [18.x, 20.x, 21.x] |
| 14 |
steps: |
| 15 |
- uses: actions/checkout@v4 |
| 16 |
- name: Use Node.js ${{ matrix.node-version }} |
| 17 |
uses: actions/setup-node@v4 |
| 18 |
with: |
| 19 |
node-version: ${{ matrix.node-version }} |
| 20 |
- uses: pnpm/action-setup@v4 |
| 21 |
- name: Install dependencies and build |
| 22 |
run: pnpm install --frozen-lockfile |
| 23 |
- name: Test packages |
| 24 |
run: pnpm test |