File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Go SQL Server Driver
2+
3+ on : [pull_request]
4+
5+ concurrency :
6+ group : ci-go-sql-server-driver-${{ github.event.pull_request.number || github.ref }}
7+ cancel-in-progress : true
8+
9+ jobs :
10+ test :
11+ name : Go SQL Server Driver tests
12+ defaults :
13+ run :
14+ shell : bash
15+ runs-on : ${{ matrix.os }}
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ os : [ ubuntu-22.04, macos-latest ]
20+ steps :
21+ - uses : actions/checkout@v6
22+ - name : Set up Go
23+ uses : actions/setup-go@v5
24+ with :
25+ go-version-file : go.mod
26+ id : go
27+ - name : Create CI Bin
28+ run : |
29+ mkdir -p ./.ci_bin
30+ echo "$(pwd)/.ci_bin" >> $GITHUB_PATH
31+ - name : Install ICU4C (MacOS)
32+ if : ${{ matrix.os == 'macos-latest' }}
33+ run : |
34+ dir=$(brew --cellar icu4c)
35+ dir="$dir"/$(ls "$dir")
36+ echo CGO_CPPFLAGS=-I$dir/include >> $GITHUB_ENV
37+ echo CGO_LDFLAGS=-L$dir/lib >> $GITHUB_ENV
38+ - name : Build SQL Syntax
39+ run : ./build.sh
40+ working-directory : ./postgres/parser
41+ shell : bash
42+ - name : Install DoltgreSQL
43+ working-directory : ./
44+ run : |
45+ go build -mod=readonly -o .ci_bin/doltgres ./cmd/doltgres
46+ echo "DOLTGRES_BIN_PATH=$(pwd)/.ci_bin/doltgres" >> $GITHUB_ENV
47+ - name : Test Go SQL Server Driver
48+ working-directory : ./integration-tests/go-sql-server-driver
49+ run : |
50+ go test --timeout=20m ./...
You can’t perform that action at this time.
0 commit comments