[Cloud Bigtable] Add support for Data Boost Isolation #12834
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
# Copyright 2023 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. | |
name: 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: | |
validations: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# This is to get all the commits in order to validate them | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: "Run validations" | |
run: | | |
./scripts/github-actions/ga-validation.sh | |
env: | |
EVENT_NAME: ${{ github.event_name }} | |
COMMIT_HEAD: ${{ github.event.pull_request.head.sha }} | |
COMMIT_CNT: ${{ github.event.pull_request.commits }} | |
BASE_COMMIT: ${{ github.event.pull_request.base.sha }} | |
unit-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: "Set up Cloud SDK" | |
uses: "google-github-actions/setup-gcloud@v1" | |
- name: "Run unit tests" | |
run: | | |
./scripts/github-actions/ga-unit-test.sh | |
- name: "Upload test result" | |
uses: actions/upload-artifact@v4 | |
if: '!cancelled()' | |
with: | |
name: unittest_result | |
path: unittest_result.json | |
retention-days: 5 | |
tests-e2e-samples: | |
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 mock samples tests" | |
run: | | |
./scripts/github-actions/tests-e2e-samples | |
env: | |
ARTIFACTS: /tmp/artifacts | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-tests-e2e-samples | |
path: /tmp/artifacts/ | |
pause-tests: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 90 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: "Run pause tests" | |
run: | | |
./scripts/github-actions/ga-pause-test.sh | |
tests-e2e-fixtures-vcr: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: "Run vcr tests" | |
run: | | |
./scripts/github-actions/tests-e2e-fixtures-vcr.sh | |
powertool-tests: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: "Run scenarios tests for powertool" | |
run: | | |
./scripts/github-actions/powertool-test.sh | |
build-images: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Free up disk space | |
run: | | |
echo "Before cleanup:" | |
df -h / | |
sudo rm -rf /opt/hostedtoolcache/* # remove pre-installed tool versions | |
sudo rm -rf /usr/share/dotnet | |
sudo docker system prune -af || true | |
echo "After cleanup:" | |
df -h / | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: "dev/tasks/build-images" | |
run: | | |
dev/tasks/build-images | |
env: | |
PROJECT_ID: cnrm-test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true |