diff --git a/.github/workflows/web-lint.yaml b/.github/workflows/web-lint.yaml index fb8312eb..66c53566 100644 --- a/.github/workflows/web-lint.yaml +++ b/.github/workflows/web-lint.yaml @@ -9,16 +9,22 @@ on: jobs: next-lint: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18] steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 with: - node-version: 18.x + version: 8 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" - name: Install dependencies - run: npm ci + run: pnpm install working-directory: ./apps/web - - name: Lint code - run: npm run lint + - name: Lint + run: pnpm run lint working-directory: ./apps/web