Skip to content

Commit

Permalink
use secret
Browse files Browse the repository at this point in the history
add secret as env variable in github workflow
  • Loading branch information
amishas157 committed Aug 8, 2024
1 parent 00056df commit 9dfec73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9dfec73

Please sign in to comment.