diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73b383fa3a..09b97a54a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,7 @@ jobs: - "packages/**" - "scripts/**" - "package.json" - - "pnpm-lock.yaml" - - "pnpm-workspace.yaml" + - "bun.lock" - "tsconfig*.json" - "Dockerfile*" @@ -46,8 +45,10 @@ jobs: - run: bun install --frozen-lockfile - run: bun run build - lint-and-format: - name: Lint & Format + lint: + name: Lint + needs: changes + if: needs.changes.outputs.code == 'true' runs-on: ubuntu-latest timeout-minutes: 5 steps: @@ -58,6 +59,18 @@ jobs: node-version: 22 - run: bun install --frozen-lockfile - run: bun run lint + + format: + name: Format + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: bun install --frozen-lockfile - run: bun run format:check typecheck: