fix: update google.golang.org/genproto digest to 0afa2a6 #236
Workflow file for this run
This file contains hidden or 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
| on: | |
| pull_request: | |
| branches: [ main ] | |
| name: Run Samples for PostgreSQL | |
| jobs: | |
| samples: | |
| strategy: | |
| matrix: | |
| go-version: [1.25.x, 1.26.x] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Pre-pull Spanner Emulator image | |
| run: | | |
| for i in {1..5}; do | |
| docker pull gcr.io/cloud-spanner-emulator/emulator:latest && break || sleep 5 | |
| done | |
| - name: Run Hello World | |
| working-directory: ./postgresql/samples/helloworld | |
| run: go run main.go | |
| - name: Run Quickstart | |
| working-directory: ./postgresql/samples/quickstart | |
| run: go run main.go | |
| - name: Run sample application | |
| working-directory: ./postgresql/samples | |
| run: go run run_sample.go | |
| - name: Run snippets | |
| working-directory: ./postgresql/samples | |
| run: | | |
| for filename in snippets/*.go; do | |
| name=${filename##*/} | |
| base=${name%.go} | |
| echo "Running sample $base" | |
| go run run_sample.go "$base" || ! break | |
| done |