Merge pull request #4706 from maqiuyujoyce/202506-small-fix #13
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
| # Copyright 2025 Google LLC | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # Generated by dev/tasks/generate-github-actions | |
| name: ci-presubmit | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - "**.md" | |
| - "experiments/**" | |
| push: | |
| branches: ["master"] | |
| paths-ignore: | |
| - "**.md" | |
| - "experiments/**" | |
| merge_group: | |
| types: [checks_requested] | |
| branches: [ "master" ] | |
| jobs: | |
| tests-scenarios: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run scripts/github-actions/tests-scenarios" | |
| run: | | |
| ./scripts/github-actions/tests-scenarios | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-scenarios | |
| path: /tmp/artifacts/ | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-scenarios-acquisition | |
| path: /tmp/artifacts/ | |
| tests-scenarios-acquisition: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run scripts/github-actions/tests-scenarios-acquisition" | |
| run: | | |
| ./scripts/github-actions/tests-scenarios-acquisition | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-scenarios-acquisition | |
| path: /tmp/artifacts/ | |
| tests-gcptracker: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tracker-tests" | |
| run: | | |
| ./dev/ci/presubmits/tracker-tests | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tracker-tests | |
| path: /tmp/artifacts/ | |
| tests-scenarios-powertool: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run scripts/github-actions/tests-scenarios-powertool" | |
| run: | | |
| ./scripts/github-actions/tests-scenarios-powertool | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-scenarios-powertool | |
| path: /tmp/artifacts/ | |
| test-mockgcp: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - uses: 'google-github-actions/setup-gcloud@v2' | |
| with: | |
| version: '520.0.0' | |
| install_components: 'alpha,beta' | |
| - name: "Run dev/ci/presubmits/test-mockgcp" | |
| run: | | |
| ./dev/ci/presubmits/test-mockgcp | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-test-mockgcp | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-alloydb: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-alloydb" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-alloydb | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-alloydb | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-apigee: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-apigee" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-apigee | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-apigee | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-backupdr: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-backupdr" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-backupdr | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-backupdr | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-bigquery: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-bigquery" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-bigquery | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-bigquery | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-bigtable: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-bigtable" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-bigtable | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-bigtable | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-certificatemanager: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-certificatemanager" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-certificatemanager | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-certificatemanager | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-cloudidentity: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-cloudidentity" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-cloudidentity | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-cloudidentity | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-compute: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-compute" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-compute | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-compute | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-gkehub: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-gkehub" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-gkehub | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-gkehub | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-monitoring: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-monitoring" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-monitoring | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-monitoring | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-resourcemanager: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-resourcemanager" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-resourcemanager | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-resourcemanager | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-secretmanager: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-secretmanager" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-secretmanager | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-secretmanager | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-spanner: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-spanner" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-spanner | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-spanner | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-sql: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-sql" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-sql | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-sql | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-storage: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 240 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-storage" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-storage | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-storage | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-vertexai: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-vertexai" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-vertexai | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-vertexai | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-vmwareengine: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-vmwareengine" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-vmwareengine | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-vmwareengine | |
| path: /tmp/artifacts/ | |
| tests-e2e-fixtures-workstations: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/tests-e2e-fixtures-workstations" | |
| run: | | |
| ./dev/ci/presubmits/tests-e2e-fixtures-workstations | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-tests-e2e-fixtures-workstations | |
| path: /tmp/artifacts/ | |
| validate-generated-types: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: "Run dev/ci/presubmits/validate-generated-types" | |
| run: | | |
| ./dev/ci/presubmits/validate-generated-types | |
| env: | |
| ARTIFACTS: /tmp/artifacts | |
| - name: "Upload artifacts" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-validate-generated-types | |
| path: /tmp/artifacts/ | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true |