name: Test packages on: workflow_dispatch: push: pull_request: jobs: test: runs-on: ubuntu-latest strategy: matrix: node-version: [18.x, 20.x, 21.x] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - uses: pnpm/action-setup@v4 - name: Install dependencies and build # build is a postinstall script run: pnpm install --frozen-lockfile - name: Test packages run: pnpm test