-
-
Notifications
You must be signed in to change notification settings - Fork 719
70 lines (67 loc) · 1.83 KB
/
ci-binlog-tests.yaml
File metadata and controls
70 lines (67 loc) · 1.83 KB
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
name: Test Binlog
on:
pull_request:
branches: [ main ]
paths:
- 'go/**'
workflow_dispatch:
concurrency:
group: ci-binlog-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
binlog-test:
name: Binlog tests
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
# TODO: bin log doesn't yet handle adapative encoding
# adaptive_encoding: ["false", "true"]
adaptive_encoding: ["false"]
steps:
- uses: actions/checkout@v6
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: go/go.mod
id: go
- name: Test Binlog
working-directory: ./go
run: |
# Test binlog packages
go test -vet=off -timeout 60m ./libraries/doltcore/sqle/binlogreplication/...
env:
MATRIX_OS: ${{ matrix.os }}
DOLT_USE_ADAPTIVE_ENCODING: ${{ matrix.adaptive_encoding }}
binlog-race-test:
name: Binlog tests - race
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
# TODO: bin log doesn't yet handle adapative encoding
# adaptive_encoding: ["false", "true"]
adaptive_encoding: ["false"]
steps:
- uses: actions/checkout@v6
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: go/go.mod
id: go
- name: Test Binlog with Race
working-directory: ./go
run: |
# Test binlog packages with race detector
go test -vet=off -timeout 60m -race ./libraries/doltcore/sqle/binlogreplication/...
env:
MATRIX_OS: ${{ matrix.os }}
DOLT_USE_ADAPTIVE_ENCODING: ${{ matrix.adaptive_encoding }}