From 521a9edb86bdf200e5b43d2fb562e5289ca5a271 Mon Sep 17 00:00:00 2001 From: ekko Date: Mon, 20 Apr 2026 20:05:50 +0800 Subject: [PATCH] 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 --- .github/PULL_REQUEST_TEMPLATE.md | 31 +++++++++++++++++++++++++++++++ .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/build.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..3c667f4 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,31 @@ +## Summary + + + +## Type of Change + +- [ ] Feature (new functionality) +- [ ] Bug fix +- [ ] Refactor (no functional change) +- [ ] Docs +- [ ] CI/CD +- [ ] Other + +## Changes + + + +## Test Plan + + + +- [ ] Build passes (`npm run build`) +- [ ] Tested manually + +## Screenshots (if applicable) + + + +## Related Issues + + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..704a2d0 --- /dev/null +++ b/.github/workflows/build.yml @@ -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