Bump actions/setup-node from 6 to 7 #1471
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| code-quality: | |
| name: Code Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: latest | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| # Pinned below 11.12.0, whose self-install crashes with | |
| # "Cannot use 'in' operator to search for 'integrity' in undefined". | |
| # https://github.com/pnpm/action-setup/issues/276 | |
| # https://github.com/pnpm/pnpm/issues/12959 | |
| version: 11.11.0 | |
| - name: Setup pnpm config | |
| run: | | |
| pnpm config set store-dir ~/.pnpm-store | |
| - uses: actions/cache@v6 | |
| name: Setup pnpm cache | |
| with: | |
| path: ~/.pnpm-store | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Check Prettier formatting | |
| run: pnpm format --check | |
| - name: Run ESLint and Stylelint | |
| run: pnpm lint |