Skip to content

Commit cd61f81

Browse files
committed
run dump sql in githut actions
1 parent 8945d3c commit cd61f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
- name: Run MySQL
3030
run: |
3131
cp tests/Test/mysql.cnf ~/.my.cnf
32+
cp tests/Test/dump.sql /docker-entrypoint-initdb.d/dump.sql
3233
sudo systemctl start mysql.service
3334
mysql -e "SET PERSIST binlog_row_metadata = 'FULL';" -uroot -proot
34-
mysql -e 'CREATE DATABASE garden;USE garden;CREATE TABLE pet (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(20), owner VARCHAR(20), species VARCHAR(20), sex CHAR(1), birth DATE, death DATE, timeUpdated datetime);' -uroot -proot
3535
- name: Test
3636
run: |
3737
cd tests/Test

0 commit comments

Comments
 (0)