Skip to content

CI - Lint - main

CI - Lint - main #39

Workflow file for this run

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