Skip to content

Commit

Permalink
build: bump gcloud auth to v2 (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite authored Feb 5, 2024
1 parent c9fd997 commit 5feea6c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/integration-tests-on-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
if: "${{ env.GCP_PROJECT_ID != '' }}"
run: echo "::set-output name=defined::true"
run: echo "defined=true" >> "$GITHUB_OUTPUT"

test:
needs: [check-env]
Expand All @@ -28,15 +28,10 @@ jobs:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v3
- id: 'auth'
uses: 'google-github-actions/auth@v0'
- name: Auth
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Setup GCloud
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
export_default_credentials: true
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Run integration tests on production
run: go test -timeout 45m
env:
Expand Down

0 comments on commit 5feea6c

Please sign in to comment.