From ad5ba06d55a1c8a6239447bc2b09d6d201d76612 Mon Sep 17 00:00:00 2001 From: JasonOA888 Date: Tue, 10 Mar 2026 13:17:55 +0800 Subject: [PATCH] feat(ci): add GitHub Actions CI workflow - Run tests on push and PR to main - Build project and upload artifacts - Use Bun for fast JavaScript runtime This ensures code quality and prevents regressions. --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..58747fa99 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun test + + - name: Build + run: bun run build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: impeccable-dist + path: dist/ + retention-days: 7