mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
add rockhopper command for test
This commit is contained in:
parent
9b5ba3780c
commit
2371438bde
12
.github/workflows/go.yml
vendored
12
.github/workflows/go.yml
vendored
|
@ -16,9 +16,9 @@ jobs:
|
||||||
redis-version:
|
redis-version:
|
||||||
- 6.2
|
- 6.2
|
||||||
env:
|
env:
|
||||||
DB_DATABASE: bbgo
|
MYSQL_DATABASE: bbgo
|
||||||
DB_USER: root
|
MYSQL_USER: "root"
|
||||||
DB_PASSWORD: root
|
MYSQL_PASSWORD: "root"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
- name: Set up MySQL
|
- name: Set up MySQL
|
||||||
run: |
|
run: |
|
||||||
sudo /etc/init.d/mysql start
|
sudo /etc/init.d/mysql start
|
||||||
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
|
mysql -e 'CREATE DATABASE ${{ env.MYSQL_DATABASE }};' -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }}
|
||||||
|
|
||||||
- name: Set up redis
|
- name: Set up redis
|
||||||
uses: shogo82148/actions-setup-redis@v1
|
uses: shogo82148/actions-setup-redis@v1
|
||||||
|
@ -52,6 +52,10 @@ jobs:
|
||||||
- name: Install Migration Tool
|
- name: Install Migration Tool
|
||||||
run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1
|
run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1
|
||||||
|
|
||||||
|
- name: Test Migration SQL Files For MySQL
|
||||||
|
run: |
|
||||||
|
rockhopper --config rockhopper_mysql.yaml up
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./cmd/bbgo
|
run: go build -v ./cmd/bbgo
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ dialect: mysql
|
||||||
# dsn: "root:123123@unix(/opt/local/var/run/mysql57/mysqld.sock)/bbgo_dev?parseTime=true"
|
# dsn: "root:123123@unix(/opt/local/var/run/mysql57/mysqld.sock)/bbgo_dev?parseTime=true"
|
||||||
|
|
||||||
# tcp connection to mysql with password
|
# tcp connection to mysql with password
|
||||||
# dsn: "root:123123@tcp(localhost:3306)/bbgo_dev?parseTime=true"
|
dsn: "root:root@tcp(localhost:3306)/bbgo?parseTime=true"
|
||||||
|
|
||||||
# tcp connection to mysql without password
|
# tcp connection to mysql without password
|
||||||
# dsn: "root@tcp(localhost:3306)/bbgo_dev?parseTime=true"
|
# dsn: "root@tcp(localhost:3306)/bbgo_dev?parseTime=true"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user