From f9480f49915585dced3e3c272f80b550e6f597a2 Mon Sep 17 00:00:00 2001 From: Callum Date: Sun, 11 Jan 2026 23:58:48 +0000 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 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 0000000..8ed4e4e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + validate: + name: Validate PR + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Type check + run: pnpm compile + + - name: Build extension + run: pnpm build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: chrome-extension + path: .output/chrome-mv3 + retention-days: 7