Skip to content

fix: ワークフロー修正 #3

fix: ワークフロー修正

fix: ワークフロー修正 #3

Workflow file for this run

name: deploy GCP
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build
run: go build ./main.go
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: test
run: go test ./... -v
gcp-test:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: "projects/${{ secrets.GCP_PROJECT_NUMBER }}/locations/global/workloadIdentityPools/github-actions-oidc/providers/github-actions-oidc-provider"
service_account: ${{ secrets.GCP_SA_EMAIL }}
- name: Test
run: gcloud iam service-accounts list