name: Test on: [push] jobs: test: runs-on: ubuntu-latest strategy: matrix: node-version: [14, 16] steps: - name: Checkout uses: actions/checkout@v3 - name: Install pnpm uses: pnpm/action-setup@v2 - name: Set node version to ${{ matrix.node_version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node_version }} cache: 'pnpm' - name: Install deps run: pnpm install - name: Build run: pnpm run build - name: Test run: pnpm run test