From 18927bbc8677572d2bf9cefa03c854b48794efda Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 3 Aug 2026 13:37:39 +0700 Subject: [PATCH] ci: add test gate before Nix deploy (API unit tests) --- .github/workflows/deploy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index de128c3..7fead02 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,28 @@ env: VPS_USER: ${{ secrets.VPS_USER }} jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + fetch-depth: 0 + submodules: false + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install deps (root workspace) + run: bun install --frozen-lockfile + + - name: Test API + working-directory: apps/api + run: bun test + build-and-deploy: + needs: test runs-on: ubuntu-latest strategy: fail-fast: false