mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-18 08:14:07 +00:00
ci: rename
This commit is contained in:
1 parent
1e909204d6
commit
bd25b85d1e
13 files changed
+176
-88
No files matched your search
@@ -0,0 +1,54 @@
|
||||
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@v4
|
||||
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
|
||||
Reference in new issue
Block a user