CI - Lint - main #39
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: CI - Lint | |
| run-name: ${{ github.workflow }} - ${{ github.ref_name }} | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "modules/**" | |
| - "test/**" | |
| - "scripts/**" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "biome.json" | |
| - ".stylelintrc.yaml" | |
| - "vite.config.js" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "modules/**" | |
| - "test/**" | |
| - "scripts/**" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "biome.json" | |
| - ".stylelintrc.yaml" | |
| - "vite.config.js" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NODE_VERSION: "22" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Enable Corepack (for pnpm cache) | |
| run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "${{ env.NODE_VERSION }}" | |
| cache: "pnpm" | |
| - name: Activate pnpm from root package.json | |
| run: pnpm --version | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint (Biome + Stylelint) | |
| run: pnpm run lint |