1name: Setup
2runs:
3  using: composite
4  steps:
5    - name: Setup MySQL
6      shell: pwsh
7      run: |
8        choco install mysql -y --no-progress --params="/port:3306"
9        mysql.exe --port=3306 --user=root --password="" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password12!'; FLUSH PRIVILEGES;"
10    - name: Setup MSSQL
11      shell: pwsh
12      run: |
13        choco install sql-server-express -y --no-progress --install-arguments="/SECURITYMODE=SQL /SAPWD=Password12!"
14    - name: Setup PostgreSQL
15      shell: pwsh
16      run: |
17        Set-Service -Name "postgresql-x64-14" -StartupType manual -Status Running
18        pwsh -Command { $env:PGPASSWORD="root"; & "$env:PGBIN\psql" -U postgres -c "ALTER USER postgres WITH PASSWORD 'Password12!';" }
19