diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index d487eab0..132fdb89 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -33,9 +33,15 @@ jobs: run: | docker-compose up -d + - name: Create GCP Credentials File + run: | + echo "${{ secrets.CREDS_TEST_HUBBLE }}" > ${{ runner.workspace }}/gcp-key.json + - name: Run tests run: | docker-compose run integration-tests go test -v -run ^TestExportTransactions$ ./cmd -timeout 30m + env: + GOOGLE_APPLICATION_CREDENTIALS: ${{ runner.workspace }}/gcp-key.json # docker-compose run integration-tests go test ./cmd -v -timeout 30m - name: Stop and remove containers diff --git a/docker-compose.yaml b/docker-compose.yaml index 93da5f9f..9de3a610 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,8 +5,9 @@ services: dockerfile: docker/Dockerfile.test container_name: stellar-etl-integration-tests restart: always - volumes: - - $HOME/.config/gcloud/application_default_credentials.json:/usr/credential.json:ro - - ./testdata:/usr/src/etl/testdata + # volumes: + # - $HOME/.config/gcloud/application_default_credentials.json:/usr/credential.json:ro + # - ./testdata:/usr/src/etl/testdata environment: - - GOOGLE_APPLICATION_CREDENTIALS=/usr/credential.json + # - GOOGLE_APPLICATION_CREDENTIALS=/usr/credential.json + - GOOGLE_APPLICATION_CREDENTIALS=/app/gcp-key.json