ci: add test gate before Nix deploy (bun test + typecheck)

This commit is contained in:
asepharyana
2026-08-03 13:37:28 +07:00
parent 630a85963d
commit d20c5f392c
+26
View File
@@ -5,8 +5,34 @@ on:
branches: [main]
workflow_dispatch:
concurrency:
group: booster-role-deploy
cancel-in-progress: false
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install deps
run: bun install --frozen-lockfile
- name: Typecheck
run: bun run typecheck
- name: Test
run: bun test
build-and-deploy:
needs: test
runs-on: ubuntu-latest
environment: orangevps