22 lines
882 B
YAML
22 lines
882 B
YAML
name: Setup
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup MySQL
|
|
shell: cmd
|
|
run: |
|
|
mysqld --initialize-insecure
|
|
mysqld --install
|
|
net start MySQL
|
|
mysql --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
|
|
- name: Setup MSSQL
|
|
shell: pwsh
|
|
run: |
|
|
choco install sql-server-express -y --no-progress --install-arguments="/SECURITYMODE=SQL /SAPWD=Password12!"
|
|
- name: Setup PostgreSQL
|
|
shell: pwsh
|
|
run: |
|
|
$postgresService = if ($env:PHP_BUILD_CRT -eq "vs18") { "postgresql-x64-17" } else { "postgresql-x64-14" }
|
|
Set-Service -Name $postgresService -StartupType manual -Status Running
|
|
pwsh -Command { $env:PGPASSWORD="root"; & "$env:PGBIN\psql" -U postgres -c "ALTER USER postgres WITH PASSWORD 'Password12!';" }
|