Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing project id for spanner-staging-tests and run on spanner runners #2127

Merged
merged 7 commits into from
Jan 17, 2025
22 changes: 16 additions & 6 deletions .github/workflows/spanner-staging-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@
name: Spanner Staging integration tests

on:
pull_request:
branches:
- 'main'
paths:
- '.github/workflows/spanner-staging-tests.yml'
inputs:
spannerHost:
description: 'Spanner host URL.'
type: string
required: false
default: 'https://staging-wrenchworks.sandbox.googleapis.com'
workflow_dispatch:
inputs:
commitOrTag:
Expand All @@ -35,7 +46,7 @@ jobs:
name: Spanner Dataflow Templates Integration Tests
timeout-minutes: 180
# Run on any runner that matches all the specified runs-on values.
runs-on: [ self-hosted, it ]
runs-on: [ self-hosted, spanner ]
steps:
- name: Checkout Code
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0
Expand All @@ -47,14 +58,13 @@ jobs:
- name: Run Integration Tests
run: |
./cicd/run-spanner-staging-it-tests \
--modules-to-build="ALL" \
--modules-to-build="v1" \
--it-region="us-central1" \
--it-project="cloud-teleport-testing" \
--it-artifact-bucket="cloud-teleport-testing-it-gitactions" \
--it-private-connectivity="datastream-private-connect-us-central1" \
--it-project="span-cloud-migrations-staging" \
--it-artifact-bucket="dataflow-testing-it-spanner-staging" \
--it-spanner-host=${{ inputs.spannerHost }}
- name: Upload Integration Tests Report
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
with:
name: surefire-test-results
Expand Down
Loading