Skip to content

Commit 35c7fef

Browse files
author
David Cavazos
committed
support secrets
1 parent d7bc543 commit 35c7fef

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ci-dev.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ jobs:
7070
workload_identity_provider: projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
7171
service_account: [email protected]
7272
access_token_lifetime: 600s # 10 minutes
73-
- name: Test ${{ matrix.package }}
74-
run: |
75-
npm install
76-
bash .github/scripts/nodejs-test.sh ${{ matrix.package }}
73+
- if: matrix.package.secrets
74+
uses: google-github-actions/get-secretmanager-secrets@v2
75+
with:
76+
secrets: ${{ join(matrix.package.secrets) }}
77+
export_to_environment: true
78+
- name: Test ${{ matrix.package.path }}
79+
run: make test dir=${{ matrix.package.path }}
7780
env:
7881
GOOGLE_SAMPLES_PROJECT: long-door-651

0 commit comments

Comments
 (0)