From f402f951112f0ddad6c7e0590a19fce9f5f88a25 Mon Sep 17 00:00:00 2001 From: Nicolas Medda Date: Tue, 14 Apr 2026 23:41:23 +0000 Subject: [PATCH] BBC2-41 add GitHub Actions workflow to run bun test on PRs --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..edc383c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + types: [opened, synchronized, reopened] + push: + branches: [main] + +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: "1.3.11" + + - run: bun install --frozen-lockfile + + # Typecheck before tests: `bun test` strips types and won't catch + # type errors on its own. Running tsc first short-circuits the job + # on type failures instead of wasting the test-run time. + - run: bunx tsc --noEmit + + - run: bun test