Skip to content

Commit 3e7800f

Browse files
committed
run github actions CI in ubuntu-20.04 too
1 parent 15fd671 commit 3e7800f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ jobs:
66
strategy:
77
matrix:
88
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 }}
1112

1213
steps:
1314
- name: Setup MySQL
@@ -17,7 +18,11 @@ jobs:
1718
1819
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
1920
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;"
2126
# create ssl/rsa files for mysql ssl support
2227
sudo mysql_ssl_rsa_setup --uid=mysql
2328
mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot

0 commit comments

Comments
 (0)