Skip to content

Commit 427d898

Browse files
committed
debug: add setup-gcloud to support eventarc/pubsub
1 parent 5eaff3c commit 427d898

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/config/nodejs-prod.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"dlp", // [ERR_REQUIRE_ESM]: require() of ES Module
8484
"document-ai", // [ERR_REQUIRE_ESM]: require() of ES Module
8585
"eventarc/audit-storage", // (untested) Environment Variable 'SERVICE_NAME' not found
86-
"eventarc/pubsub", // (untested) Environment Variable 'SERVICE_NAME' not found
8786
"functions/billing", // Error: Request failed with status code 500
8887
"functions/http/uploadFile", // npm error Missing script: "test"
8988
"functions/imagemagick", // Error: A bucket name is needed to use Cloud Storage

.github/workflows/ci-prod.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ jobs:
101101
workload_identity_provider: projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
102102
service_account: [email protected]
103103
access_token_lifetime: 600s # 10 minutes
104+
- name: Set up Cloud SDK
105+
uses: google-github-actions/setup-gcloud@v2
104106
- name: Export environment variables
105107
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
106108
id: vars

eventarc/pubsub/test/runner.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function cleanup {
4040
trap cleanup EXIT
4141

4242
# TODO: Perform authentication inside the test.
43+
gcloud auth list
4344
export ID_TOKEN=$(gcloud auth print-identity-token)
4445
export BASE_URL=$(test/url.sh)
4546

0 commit comments

Comments
 (0)