Fix github actions for Ubuntu 20.04 + MySQL 8.0

This commit is contained in:
Kijin Sung 2022-10-30 18:18:06 +09:00
parent 85685a260f
commit 0b2f9a7c6e

View file

@ -1,5 +1,5 @@
name: PHP Lint & Codeception
on: [push, pull_request]
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-20.04
@ -23,6 +23,7 @@ jobs:
run: |
sudo systemctl start mysql.service
sudo mysql -uroot -proot -e "CREATE DATABASE rhymix CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci"
sudo mysql -uroot -proot -e "ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'root'"
- name: PHP Lint
run: if find . -name "*.php" ! -path "./vendor/*" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v "No syntax errors detected"; then exit 1; fi