diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 132fdb89..dc449f27 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -37,11 +37,16 @@ jobs: run: | echo "${{ secrets.CREDS_TEST_HUBBLE }}" > ${{ runner.workspace }}/gcp-key.json + - name: Verify file contents + run: | + cat ${{ runner.workspace }}/gcp-key.json + shell: bash + - 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 -v ${{ runner.workspace }}/gcp-key.json:/usr/credential.json:ro -e GOOGLE_APPLICATION_CREDENTIALS=/usr/credential.json 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 a33fb537..e5a7cf02 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,4 +10,4 @@ services: # - ./testdata:/usr/src/etl/testdata # environment: # # - GOOGLE_APPLICATION_CREDENTIALS=/usr/credential.json - # - GOOGLE_APPLICATION_CREDENTIALS=/app/gcp-key.json + # - GOOGLE_APPLICATION_CREDENTIALS=/home/runner/work/stellar-etl/gcp-key.json