From d88c91c5d701c5cecda2d4fa8f4f5afcc94c2dd9 Mon Sep 17 00:00:00 2001 From: swve Date: Sun, 4 Feb 2024 21:09:31 +0100 Subject: [PATCH] chore: use pnpm for linting action --- .github/workflows/web-lint.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) 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