-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (48 loc) · 1.58 KB
/
integration-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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'