You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+8-3
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,9 @@ jobs:
6
6
strategy:
7
7
matrix:
8
8
go: [ 1.19, 1.18, 1.17, 1.16 ]
9
-
name: Tests Go ${{ matrix.go }}
10
-
runs-on: ubuntu-18.04
9
+
os: [ ubuntu-18.04, ubuntu-20.04 ]
10
+
name: Tests Go ${{ matrix.go }} # This name is used in main branch protection rules
11
+
runs-on: ${{ matrix.os }}
11
12
12
13
steps:
13
14
- name: Setup MySQL
@@ -17,7 +18,11 @@ jobs:
17
18
18
19
echo -e '[mysqld]\nserver-id=1\nlog-bin=mysql\nbinlog-format=row\ngtid-mode=ON\nenforce_gtid_consistency=ON\n' | sudo tee /etc/mysql/conf.d/replication.cnf
19
20
sudo service mysql start
20
-
sudo mysql -h 127.0.0.1 -uroot -proot -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password'; FLUSH PRIVILEGES;"
21
+
22
+
# apply this for mysql5 & mysql8 compatibility
23
+
sudo mysql -h 127.0.0.1 -uroot -proot -e "DROP USER IF EXISTS 'mysql.infoschema'@'localhost'; CREATE USER IF NOT EXISTS 'mysql.infoschema'@'localhost' IDENTIFIED BY ''; GRANT SELECT ON *.* TO 'mysql.infoschema'@'localhost';"
24
+
25
+
sudo mysql -h 127.0.0.1 -uroot -proot -e "use mysql; update user set authentication_string=null where User='root'; update user set plugin='mysql_native_password'; FLUSH PRIVILEGES;"
21
26
# create ssl/rsa files for mysql ssl support
22
27
sudo mysql_ssl_rsa_setup --uid=mysql
23
28
mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot
0 commit comments