From 1ceb6e0b548e970d31e88b952a6a2e1dcd43255b Mon Sep 17 00:00:00 2001 From: Piwccle Date: Wed, 24 Sep 2025 18:47:50 +0200 Subject: [PATCH] fix: update GCP credentials handling in backend integration tests and add log upload on failure --- .github/workflows/backend-integration-test.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backend-integration-test.yaml b/.github/workflows/backend-integration-test.yaml index 83bc0a1..42afecf 100644 --- a/.github/workflows/backend-integration-test.yaml +++ b/.github/workflows/backend-integration-test.yaml @@ -131,8 +131,7 @@ jobs: - name: Save GCP credentials if: matrix.storage-provider == 'gcs' run: | - echo "${{ secrets.GCP_CREDENTIALS_JSON }}" > /credentials.json - cat /credentials.json + echo '${{ secrets.GCP_CREDENTIALS_JSON }}' > /credentials.json - name: Setup OpenVidu Local Deployment uses: OpenVidu/actions/start-openvidu-local-deployment@main with: @@ -173,7 +172,7 @@ jobs: MEET_AZURE_ACCOUNT_NAME: ${{ vars.MEET_AZURE_ACCOUNT_NAME }} MEET_AZURE_ACCOUNT_KEY: ${{ secrets.MEET_AZURE_ACCOUNT_KEY }} MEET_AZURE_CONTAINER_NAME: 'openvidu-appdata-recordings' - GOOGLE_APPLICATION_CREDENTIALS: '/credentials.json' + GOOGLE_APPLICATION_CREDENTIALS: /credentials.json MEET_S3_BUCKET: 'openvidu-appdata' - name: Run tests run: | @@ -184,7 +183,7 @@ jobs: MEET_AZURE_ACCOUNT_NAME: ${{ vars.MEET_AZURE_ACCOUNT_NAME }} MEET_AZURE_ACCOUNT_KEY: ${{ secrets.MEET_AZURE_ACCOUNT_KEY }} MEET_AZURE_CONTAINER_NAME: 'openvidu-appdata-recordings' - GOOGLE_APPLICATION_CREDENTIALS: '/credentials.json' + GOOGLE_APPLICATION_CREDENTIALS: /credentials.json MEET_S3_BUCKET: 'openvidu-appdata' JEST_JUNIT_OUTPUT_DIR: './reports/' - name: Publish Test Report @@ -194,6 +193,13 @@ jobs: report_paths: '**/reports/junit.xml' fail_on_failure: true require_tests: true + - name: Upload OpenVidu Meet logs on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: recordings-test-openvidu-meet-logs + path: backend/meet_backend.log + retention-days: 2 - name: Clean up if: always() uses: OpenVidu/actions/cleanup@main