mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 16:13:52 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
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"
|
|
- "vite.config.js"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "modules/**"
|
|
- "test/**"
|
|
- "scripts/**"
|
|
- "package.json"
|
|
- "pnpm-lock.yaml"
|
|
- "biome.json"
|
|
- "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@v6
|
|
- 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
|