Skip to content

upgrade tidb and parser #5

upgrade tidb and parser

upgrade tidb and parser #5

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
integration-test:
name: go-sqlsmith
runs-on: ubuntu-24.04
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping -h 127.0.0.1 -uroot -proot"
--health-interval=10s
--health-timeout=5s
--health-retries=5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.0
- name: Wait for MySQL to be ready
run: |
for i in {1..30}; do
if mysqladmin ping -h 127.0.0.1 -uroot -proot --silent; then
echo "MySQL is ready"
break
fi
echo "Waiting for MySQL..."
sleep 2
done
- name: Install dependencies
run: go mod download
- name: Build
run: make
- name: Run integration tests
run: make integration-test