Add PHP 8.4 to test matrix, and reorganize github CI configuration

This commit is contained in:
Kijin Sung 2024-11-30 18:02:01 +09:00
parent ab242e9ebf
commit 6184797b22
3 changed files with 56 additions and 12 deletions

14
.github/workflows/setup-mysql.sh vendored Normal file
View file

@ -0,0 +1,14 @@
#!/bin/bash
AUTH="-uroot -proot"
# Start MySQL
sudo systemctl start mysql.service
# Create default database
sudo mysql $AUTH -e "CREATE DATABASE rhymix CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci"
sudo mysql $AUTH -e "CREATE USER rhymix@localhost IDENTIFIED WITH mysql_native_password BY 'rhymix'"
sudo mysql $AUTH -e "GRANT ALL ON rhymix.* to rhymix@localhost; FLUSH PRIVILEGES"
# Check MySQL version
sudo mysql $AUTH -e "SELECT VERSION()"