ci: add PR build check workflow and PR template

- Add build.yml workflow that runs npm run build on PRs to main/dev
- Add PR template with summary, type, changes, test plan sections
- Required by branch protection rules on main

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-04-20 20:05:50 +08:00
parent 8ad0723b00
commit 521a9edb86
2 changed files with 57 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
## Summary
<!-- Briefly describe what this PR does and why -->
## Type of Change
- [ ] Feature (new functionality)
- [ ] Bug fix
- [ ] Refactor (no functional change)
- [ ] Docs
- [ ] CI/CD
- [ ] Other
## Changes
<!-- List the key changes made -->
## Test Plan
<!-- How did you test? What should reviewers verify? -->
- [ ] Build passes (`npm run build`)
- [ ] Tested manually
## Screenshots (if applicable)
<!-- Add screenshots for UI changes -->
## Related Issues
<!-- Link related issues, e.g. Closes #123 -->
+26
View File
@@ -0,0 +1,26 @@
name: Build
on:
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm install
- name: Build
run: npm run build