|
| 1 | +# Copyright 2025 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# These presubmits should be moved to dev/ci/presubmits |
| 16 | + |
| 17 | +name: ci-presubmit-legacy |
| 18 | + |
| 19 | +on: |
| 20 | + pull_request: |
| 21 | + types: [opened, synchronize, reopened] |
| 22 | + paths-ignore: |
| 23 | + - "**.md" |
| 24 | + - "experiments/**" |
| 25 | + push: |
| 26 | + branches: ["master"] |
| 27 | + paths-ignore: |
| 28 | + - "**.md" |
| 29 | + - "experiments/**" |
| 30 | + merge_group: |
| 31 | + types: [checks_requested] |
| 32 | + branches: [ "master" ] |
| 33 | + |
| 34 | + |
| 35 | +jobs: |
| 36 | + tests-scenarios: |
| 37 | + runs-on: ubuntu-latest |
| 38 | + timeout-minutes: 60 |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v4 |
| 41 | + - uses: actions/setup-go@v5 |
| 42 | + with: |
| 43 | + go-version-file: 'go.mod' |
| 44 | + - name: "Run scripts/github-actions/tests-scenarios" |
| 45 | + run: | |
| 46 | + ./scripts/github-actions/tests-scenarios |
| 47 | + env: |
| 48 | + ARTIFACTS: /tmp/artifacts |
| 49 | + - name: "Upload artifacts" |
| 50 | + uses: actions/upload-artifact@v4 |
| 51 | + with: |
| 52 | + name: artifacts-tests-scenarios |
| 53 | + path: /tmp/artifacts/ |
| 54 | + |
| 55 | + tests-scenarios-acquisition: |
| 56 | + runs-on: ubuntu-latest |
| 57 | + timeout-minutes: 60 |
| 58 | + steps: |
| 59 | + - uses: actions/checkout@v4 |
| 60 | + - uses: actions/setup-go@v5 |
| 61 | + with: |
| 62 | + go-version-file: 'go.mod' |
| 63 | + - name: "Run scripts/github-actions/tests-scenarios-acquisition" |
| 64 | + run: | |
| 65 | + ./scripts/github-actions/tests-scenarios-acquisition |
| 66 | + - name: "Upload artifacts" |
| 67 | + uses: actions/upload-artifact@v4 |
| 68 | + with: |
| 69 | + name: artifacts-tests-scenarios-acquisition |
| 70 | + path: /tmp/artifacts/ |
| 71 | + |
| 72 | + tests-gcptracker: |
| 73 | + runs-on: ubuntu-latest |
| 74 | + timeout-minutes: 30 |
| 75 | + steps: |
| 76 | + - uses: actions/checkout@v4 |
| 77 | + - uses: actions/setup-go@v5 |
| 78 | + with: |
| 79 | + go-version-file: 'go.mod' |
| 80 | + - name: "Run dev/ci/presubmits/tracker-tests" |
| 81 | + run: | |
| 82 | + ./dev/ci/presubmits/tracker-tests |
| 83 | + env: |
| 84 | + ARTIFACTS: /tmp/artifacts |
| 85 | + - name: "Upload artifacts" |
| 86 | + uses: actions/upload-artifact@v4 |
| 87 | + with: |
| 88 | + name: artifacts-tracker-tests |
| 89 | + path: /tmp/artifacts/ |
| 90 | + |
| 91 | + tests-scenarios-powertool: |
| 92 | + runs-on: ubuntu-latest |
| 93 | + timeout-minutes: 10 |
| 94 | + steps: |
| 95 | + - uses: actions/checkout@v4 |
| 96 | + - uses: actions/setup-go@v5 |
| 97 | + with: |
| 98 | + go-version-file: 'go.mod' |
| 99 | + - name: "Run scripts/github-actions/tests-scenarios-powertool" |
| 100 | + run: | |
| 101 | + ./scripts/github-actions/tests-scenarios-powertool |
| 102 | + env: |
| 103 | + ARTIFACTS: /tmp/artifacts |
| 104 | + - name: "Upload artifacts" |
| 105 | + uses: actions/upload-artifact@v4 |
| 106 | + with: |
| 107 | + name: artifacts-tests-scenarios-powertool |
| 108 | + path: /tmp/artifacts/ |
| 109 | + |
| 110 | +concurrency: |
| 111 | + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} |
| 112 | + cancel-in-progress: true |
0 commit comments