Skip to content

[DB-15464][Sizing Calc] buffer to choose higher vCPU instance type #810

[DB-15464][Sizing Calc] buffer to choose higher vCPU instance type

[DB-15464][Sizing Calc] buffer to choose higher vCPU instance type #810

name: Go
on:
push:
branches: ['main', '*.*-dev', '*.*.*-dev']
pull_request:
branches: [main]
env:
ORACLE_INSTANT_CLIENT_VERSION: "21.5.0.0.0-1"
jobs:
integration-tests:
strategy:
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
# https://github.com/actions/setup-java
with:
distribution: "temurin"
java-version: "17"
check-latest: true
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.23.1"
- name: Run installer script to setup voyager and dependencies for running integration tests
run: |
cd installer_scripts
yes | ./install-yb-voyager --install-from-local-source
sudo rm /usr/bin/pg_dump
sudo ln -s /usr/lib/postgresql/17/bin/pg_dump /usr/bin/pg_dump
sudo rm /usr/bin/pg_restore
sudo ln -s /usr/lib/postgresql/17/bin/pg_restore /usr/bin/pg_restore
pg_dump --version
pg_restore --version
psql --version
env:
ON_INSTALLER_ERROR_OUTPUT_LOG: Y
- name: Run Integration Tests
run: |
cd yb-voyager
go test -v ./... -tags 'integration'
# Note: Below go tests use a voyager binary to call voyager commands
# Hence its important to ensure the voyager binary built is using the changes in the PR branch - `./install-yb-voyager --install-from-local-source`
- name: Run Integration Tests (executing voyager commands)
run: |
cd yb-voyager
go test -v ./... -tags 'integration_voyager_command'