Skip to content

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

feat: updated to reuse and run integration api test before release

Akhil Mohan8864c811fe3b
diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml
index 54f4f4fbe8..2e9044a9fa 100644
--- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml
+++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml
@@ -5,9 +5,17 @@ on:
- "infisical/v*.*.*-postgres"
jobs:
+ infisical-tests:
+ name: Run tests before deployment
+ runs-on: ubuntu-latest
+ steps:
+ - name: Run backend api integration tests
+ # https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview
+ uses: ./.github/workflows/run-backend-tests.yml
infisical-standalone:
name: Build infisical standalone image postgres
runs-on: ubuntu-latest
+ needs: [infisical-tests]
steps:
- name: Extract version from tag
id: extract_version
diff --git a/.github/workflows/run-backend-tests.yml b/.github/workflows/run-backend-tests.yml
index 2a805eab79..a283a538da 100644
--- a/.github/workflows/run-backend-tests.yml
+++ b/.github/workflows/run-backend-tests.yml
@@ -8,9 +8,8 @@ on:
- "!backend/README.md"
- "!backend/.*"
- "backend/.eslintrc.js"
- push:
- tags:
- - "infisical/v*.*.*-postgres"
+ workflow_call:
+
jobs:
check-be-pr:
name: Run integration test