-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (43 loc) · 1.63 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
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
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.23.1"
- name: Build
run: |
cd yb-voyager
go build -v ./...
# required by godror driver used in the tests
- name: Install Oracle Instant Clients
run: |
# Download and install the YB APT repository package
wget https://s3.us-west-2.amazonaws.com/downloads.yugabyte.com/repos/reporpms/yb-apt-repo_1.0.0_all.deb
sudo apt-get install -y ./yb-apt-repo_1.0.0_all.deb
sudo apt-get update -y
# Install Oracle Instant Client packages using the defined version
sudo apt-get install -y oracle-instantclient-tools=${{ env.ORACLE_INSTANT_CLIENT_VERSION }}
sudo apt-get install -y oracle-instantclient-basic=${{ env.ORACLE_INSTANT_CLIENT_VERSION }}
sudo apt-get install -y oracle-instantclient-devel=${{ env.ORACLE_INSTANT_CLIENT_VERSION }}
sudo apt-get install -y oracle-instantclient-jdbc=${{ env.ORACLE_INSTANT_CLIENT_VERSION }}
sudo apt-get install -y oracle-instantclient-sqlplus=${{ env.ORACLE_INSTANT_CLIENT_VERSION }}
# Clean up the YB APT repository package
sudo apt-get remove -y yb-apt-repo
rm -f yb-apt-repo_1.0.0_all.deb
- name: Run Integration Tests
run: |
cd yb-voyager
go test -v ./... -tags 'integration'