File tree 2 files changed +55
-0
lines changed
2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 91
91
# TODO: Fix "dump/" and "canal/": mysqldump tries to run SHOW MASTER STATUS on v8.4.0
92
92
go test $(go list ./... | grep -v canal | grep -v dump)
93
93
# go test $(go list ./... | grep canal | grep -v dump)
94
+
95
+ mariadbtest :
96
+ strategy :
97
+ matrix :
98
+ mariadb_version :
99
+ - 10.11
100
+ - 11.4
101
+ - 11.7
102
+ name : Tests with MariaDB ${{ matrix.mariadb_version }}
103
+ runs-on : ubuntu-latest
104
+ services :
105
+ mariadb :
106
+ image : mariadb:${{ matrix.mariadb_version }}
107
+ env :
108
+ MARIADB_ALLOW_EMPTY_ROOT_PASSWORD : yes
109
+ ports :
110
+ - 3306:3306
111
+ volumes :
112
+ - ./config:/etc/mysql
113
+ options : >-
114
+ --health-cmd="healthcheck.sh --connect --innodb_initialized"
115
+ --health-interval=10s
116
+ --health-timeout=5s
117
+ --health-retries=3
118
+ --name mariadb
119
+
120
+ steps :
121
+ - name : Setup dependencies
122
+ run : |
123
+ sudo apt-get install -y make gcc mariadb-client
124
+ - name : MariaDB versions
125
+ run : |
126
+ echo -n "mariadb -v: " ; mariadb -V
127
+ echo -n "mariadb-dump -V: " ; mariadb-dump -V
128
+ echo -n "MariaDB Server (SELECT VERSION()): " ; mariadb -h 127.0.0.1 -u root -BNe 'SELECT VERSION()'
129
+ - name : Checkout code
130
+ uses : actions/checkout@v4
131
+ - name : Restart docker
132
+ uses : docker://docker
133
+ with :
134
+ args : docker restart mariadb
135
+ - name : Install Go
136
+ uses : actions/setup-go@v5
137
+ with :
138
+ go-version : stable
139
+ - name : Run tests
140
+ run : |
141
+ # separate test to avoid RESET MASTER conflict
142
+ # TODO: Fix "dump/" and "canal/": mysqldump tries to run SHOW MASTER STATUS on v8.4.0
143
+ go test $(go list ./... | grep -v canal | grep -v dump)
144
+ # go test $(go list ./... | grep canal | grep -v dump)
94
145
95
146
golangci :
96
147
name : golangci
Original file line number Diff line number Diff line change
1
+ [mariadbd]
2
+ log_bin
3
+ binlog_format =ROW
4
+ server_id =1
You can’t perform that action at this time.
0 commit comments