Skip to content

Commit 290847c

Browse files
frankieyanclaude
andcommitted
ci: add PR health check and semantic validation workflows
Add GitHub Actions workflows for pull request CI: - check-pull-request-health.yml: runs types, lint, test, and build - check-semantic-pull-request.yml: validates conventional commit format Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 478e065 commit 290847c

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check pull request health
2+
3+
on: pull_request
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 10
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v5
12+
13+
- name: Prepare Node.js environment
14+
uses: actions/setup-node@v6
15+
with:
16+
cache: npm
17+
node-version-file: .node-version
18+
19+
- name: Install project npm dependencies
20+
run: npm ci
21+
22+
- run: npm run check
23+
- run: npm run test
24+
- run: npm run build
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Semantic Pull Request
2+
3+
on:
4+
pull_request:
5+
types:
6+
- edited
7+
- opened
8+
- synchronize
9+
10+
jobs:
11+
validate-title:
12+
name: Validate Title
13+
runs-on: ubuntu-latest
14+
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
timeout-minutes: 5
18+
steps:
19+
- name: Validate pull request title
20+
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017
21+
with:
22+
validateSingleCommit: true

0 commit comments

Comments
 (0)