I enabled debug mode in wp-config.php and got errors:
PHP Warning: mysqli_real_connect(): (HY000/2054):
The server requested authentication method unknown to the client in /home/runner/work/gh-actions-wp-demo/gh-actions-wp-demo/wp-includes/class-wpdb.php on line 2019
Error: The server requested authentication method unknown to the client
Fixed with this line in workwlow.yml
mysql –user=”root” –password=”root” –execute=”ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘root’;”