From 2f17b569576b2bcaeb28a50432de8b1ef4205447 Mon Sep 17 00:00:00 2001 From: nnhhoang Date: Thu, 26 Mar 2026 11:11:26 +0700 Subject: [PATCH] ci: add lint and typecheck workflow on push/PR to main Closes #148 --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 00000000..fdacf158 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + quality: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Lint & format check + run: bun run check + + - name: Type check + run: bun run check-types