Skip to content

Commit 85e7b0a

Browse files
ikidnapmyselfclaude
andcommitted
ci: fix Scrutinizer MySQL auth and .env DB settings
Set mysql_native_password for root with 'root' password to match phpunit.xml. Patch .env after copy to target swinn-test database. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 337f68d commit 85e7b0a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.scrutinizer.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ build:
1010

1111
dependencies:
1212
before:
13+
- mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;"
14+
- mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS \`swinn-test\`;"
1315
- php -r "file_exists('.env') || copy('.env.example', '.env');"
16+
- sed -i 's/DB_DATABASE=laravel/DB_DATABASE=swinn-test/' .env
17+
- sed -i 's/DB_PASSWORD=/DB_PASSWORD=root/' .env
1418
- composer install --no-ansi --no-interaction --no-scripts --prefer-dist
1519
- php artisan key:generate
16-
- mysql -uroot -e "CREATE DATABASE IF NOT EXISTS \`swinn-test\`;"
1720
- php artisan migrate --force
1821
- php artisan passport:install --no-interaction
1922

0 commit comments

Comments
 (0)