ci testing for demos #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gcp-auth-script | |
on: | |
push: | |
branches: | |
- test | |
- main | |
- release/* #ToDo: add a release branch | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test-auth: | |
runs-on: ubuntu-latest | |
steps: | |
- id: 'auth' | |
uses: 'google-github-actions/[email protected]' | |
with: | |
credentials_json: '${{ secrets.GCP_AUTH }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud compute instances start test-instance' |