ci: add test gate before Nix deploy (API unit tests)

This commit is contained in:
asepharyana
2026-08-03 13:37:39 +07:00
parent a4b546058a
commit 18927bbc86
+21
View File
@@ -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