Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: added unit test in github action

=1d57629036f0
diff --git a/.github/workflows/run-backend-tests.yml b/.github/workflows/run-backend-tests.yml
index 1fc9deff67..f2ba04e76d 100644
--- a/.github/workflows/run-backend-tests.yml
+++ b/.github/workflows/run-backend-tests.yml
@@ -34,7 +34,10 @@ jobs:
working-directory: backend
- name: Start postgres and redis
run: touch .env && docker compose -f docker-compose.dev.yml up -d db redis
- - name: Start integration test
+ - name: Run unit test
+ run: npm run test:unit
+ working-directory: backend
+ - name: Run integration test
run: npm run test:e2e
working-directory: backend
env:
@@ -44,4 +47,5 @@ jobs:
ENCRYPTION_KEY: 4bnfe4e407b8921c104518903515b218
- name: cleanup
run: |
- docker compose -f "docker-compose.dev.yml" down
\ No newline at end of file
+ docker compose -f "docker-compose.dev.yml" down
+