-
Notifications
You must be signed in to change notification settings - Fork 4
111 lines (96 loc) · 2.77 KB
/
go.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Build
env:
GOPATH: /home/runner/go
run: |
sed -i -e "s,_ \"github.com/mattn/go-oci8\",,g" web/server.go
sed -i -e "s,_ \"gopkg.in/rana/ora.v4\",,g" web/server.go
make
- name: Prepare code for tests and test DBS
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
curl -ksL https://gist.githubusercontent.com/vkuznet/6c1b1ded0a6b85da64a7c0a5386745ca/raw/3198086a7b6d8f41478e0423ff99cbe3616f547f/oci8.pc > /home/runner/go/oci8.pc
sed -i -e "s,_ \"github.com/mattn/go-oci8\",,g" web/server.go
sed -i -e "s,_ \"gopkg.in/rana/ora.v4\",,g" web/server.go
sed -i -e "s,_ \"github.com/mattn/go-oci8\",,g" test/writer_test.go
sed -i -e "s,_ \"github.com/mattn/go-oci8\",,g" test/http_test.go
sed -i -e "s,_ \"github.com/mattn/go-oci8\",,g" test/seq/seq.go
sed -i -e "s,_ \"github.com/mattn/go-oci8\",,g" test/merge/main.go
mkdir -p $GOPATH/src/github.com/vkuznet
cp -r ../dbs2go $GOPATH/src/github.com/vkuznet
- name: Test SQL
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-sql
- name: Test validator
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-validator
- name: Test bulk
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-bulk
- name: Test http
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-http
- name: Test utils
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-utils
- name: Test writer
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-writer
- name: Test integration
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-integration
- name: Test migration requests
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-migration-requests
- name: Test migration
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make test-migration
- name: Benchmark
env:
GOPATH: /home/runner/go
PKG_CONFIG_PATH: /home/runner/go
run: |
make bench