From 317db2e2284cc6b8740430e68623113052446444 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 17 Nov 2026 16:04:07 -0500 Subject: [PATCH] ci: check pull requests and pushes to main --- .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..5c371b8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +concurrency: + # Pushes to main fall back to the unique run id, so they never cancel each other. + group: ci-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: oven-sh/setup-bun@v2 + with: + # Match `packageManager` so the lockfile format agrees with local installs. + bun-version-file: package.json + - run: bun install --frozen-lockfile + - run: bun run lint + - run: bun run type-check + - run: bun run test + - run: bun run build + - run: bun run storybook:build