mirror of
https://github.com/jeffvli/feishin.git
synced 2026-12-05 16:22:27 -08:00
Introduce AGENTS.md (CLAUDE.md symlink), docs/agents guides, repo skills, and CI commitlint with Feishin scopes.
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install Node.js and PNPM
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Lint Files
|
|
run: pnpm run lint
|
|
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Node.js and PNPM
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Lint PR commits
|
|
if: github.event_name == 'pull_request'
|
|
run: pnpm exec commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
|
|
|
|
- name: Lint push commits
|
|
if: github.event_name == 'push'
|
|
run: |
|
|
if [ "${{ github.event.before }}" = "0000000000000000000000000000000000000000" ]; then
|
|
pnpm exec commitlint --last --verbose
|
|
else
|
|
pnpm exec commitlint --from ${{ github.event.before }} --to ${{ github.event.after }} --verbose
|
|
fi
|