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