Skip to content

Commit

Permalink
CI: add a job for testing GCP credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamOlech committed Oct 17, 2023
1 parent bcdb99f commit 0369f8d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,34 @@ jobs:
micropython/
boards_sample_pairs
Gcp-Test:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: write
steps:
- uses: actions/checkout@v3
- id: gcp-auth
name: GCP Authentcation
uses: google-github-actions/auth@v1
with:
service_account: ${{ secrets.GCP_SA }}
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
cleanup_credentials: true
create_credentials_file: true
export_environment_variables: false

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
env:
GOOGLE_GHA_CREDS_PATH: ${{ steps.gcp-auth.outputs.credentials_file_path }}
with:
version: '>= 363.0.0'

- name: Use gcloud CLI
run: gcloud info


Build:
needs: Prepare-Workload
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0369f8d

Please sign in to comment.