chore: update deps #535
Workflow file for this run
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
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
name: Integration tests on production | |
jobs: | |
check-env: | |
outputs: | |
has-key: ${{ steps.project-id.outputs.defined }} | |
runs-on: ubuntu-latest | |
steps: | |
- id: project-id | |
env: | |
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | |
if: "${{ env.GCP_PROJECT_ID != '' }}" | |
run: echo "defined=true" >> "$GITHUB_OUTPUT" | |
test: | |
needs: [check-env] | |
if: needs.check-env.outputs.has-key == 'true' | |
runs-on: ubuntu-latest | |
timeout-minutes: 45 | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Auth | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Run integration tests on production | |
run: go test -v -timeout 45m ./... -run '^TestIntegration_' | |
env: | |
JOB_TYPE: test | |
SPANNER_TEST_PROJECT: ${{ secrets.GCP_PROJECT_ID }} | |
SPANNER_TEST_INSTANCE: test-instance | |
- name: Run samples tests on production | |
working-directory: ./samples/sample_application | |
run: | | |
go mod tidy | |
go test -v -timeout 45m ./... -run '^TestIntegration_' | |
env: | |
JOB_TYPE: test | |
SPANNER_TEST_PROJECT: ${{ secrets.GCP_PROJECT_ID }} | |
SPANNER_TEST_INSTANCE: samples-instance |