From ed247a794a7bda511e9cadc6364e5e98a7c96a2e Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Sun, 13 Jul 2025 23:36:59 +0400 Subject: [PATCH] requested changes --- .github/workflows/validate-db-schemas.yml | 29 ++++++++++------------- .infisicalignore | 3 +-- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/validate-db-schemas.yml b/.github/workflows/validate-db-schemas.yml index 185ec1a3d1..1a3f7f23cc 100644 --- a/.github/workflows/validate-db-schemas.yml +++ b/.github/workflows/validate-db-schemas.yml @@ -9,13 +9,21 @@ on: workflow_call: jobs: - check-be-pr: + validate-db-schemas: name: Validate DB schemas runs-on: ubuntu-latest timeout-minutes: 15 + env: + NODE_OPTIONS: "--max-old-space-size=8192" + REDIS_URL: redis://172.17.0.1:6379 + DB_CONNECTION_URI: postgres://infisical:infisical@172.17.0.1:5432/infisical?sslmode=disable + AUTH_SECRET: something-random + ENCRYPTION_KEY: 4bnfe4e407b8921c104518903515b218 steps: - name: ☁️ Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: KengoTODA/actions-setup-docker-compose@v1 if: ${{ env.ACT }} name: Install `docker compose` for local simulations @@ -28,32 +36,19 @@ jobs: cache: "npm" cache-dependency-path: backend/package-lock.json + - name: Start PostgreSQL and Redis + run: touch .env && docker compose -f docker-compose.dev.yml up -d db redis - name: Install dependencies run: npm install working-directory: backend - - name: Start PostgreSQL and Redis - run: touch .env && docker compose -f docker-compose.dev.yml up -d db redis - - name: Apply migrations run: npm run migration:latest-dev working-directory: backend - env: - NODE_OPTIONS: "--max-old-space-size=8192" - REDIS_URL: redis://172.17.0.1:6379 - DB_CONNECTION_URI: postgres://infisical:infisical@172.17.0.1:5432/infisical?sslmode=disable - AUTH_SECRET: something-random - ENCRYPTION_KEY: 4bnfe4e407b8921c104518903515b218 - name: Run schema generation run: npm run generate:schema working-directory: backend - env: - NODE_OPTIONS: "--max-old-space-size=8192" - REDIS_URL: redis://172.17.0.1:6379 - DB_CONNECTION_URI: postgres://infisical:infisical@172.17.0.1:5432/infisical?sslmode=disable - AUTH_SECRET: something-random - ENCRYPTION_KEY: 4bnfe4e407b8921c104518903515b218 - name: Check for schema changes run: | diff --git a/.infisicalignore b/.infisicalignore index 0f430e377b..1f02492d63 100644 --- a/.infisicalignore +++ b/.infisicalignore @@ -46,5 +46,4 @@ cli/detect/config/gitleaks.toml:gcp-api-key:582 .github/workflows/helm-release-infisical-core.yml:generic-api-key:47 backend/src/services/smtp/smtp-service.ts:generic-api-key:79 frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/CloudflarePagesSyncFields.tsx:cloudflare-api-key:7 -.github/workflows/validate-db-schemas.yml:generic-api-key:56 -.github/workflows/validate-db-schemas.yml:generic-api-key:46 +.github/workflows/validate-db-schemas.yml:generic-api-key:21