diff --git a/.github/actions/setup-sql-server/Initialize-SqlServer.ps1 b/.github/actions/setup-sql-server/Initialize-SqlServer.ps1 index 45cd05b38..22179170d 100644 --- a/.github/actions/setup-sql-server/Initialize-SqlServer.ps1 +++ b/.github/actions/setup-sql-server/Initialize-SqlServer.ps1 @@ -1,10 +1,15 @@ -if ($Env:RUNNER_OS -eq "Windows") +if ($Env:RUNNER_OS -eq "Windows") { choco install sql-server-express --no-progress } else { docker pull mcr.microsoft.com/mssql/server && - docker run --name sql2019 -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Password1!' -p 1433:1433 -d 'mcr.microsoft.com/mssql/server:2019-latest' && - docker exec -u 0 sql2019 bash -c 'mkdir /data; chmod 777 /data -R; chown mssql:root /data' + docker run ` + --name sql2019 ` + --env 'ACCEPT_EULA=Y' ` + --env 'SA_PASSWORD=Password1!' ` + --publish 1433:1433 ` + --detach 'mcr.microsoft.com/mssql/server:2019-latest' && + docker exec --user 0 sql2019 bash -c 'mkdir /data; chmod 777 /data --recursive; chown mssql:root /data' } diff --git a/.github/actions/setup-sql-server/action.yml b/.github/actions/setup-sql-server/action.yml index 8650581e2..a52bfd893 100644 --- a/.github/actions/setup-sql-server/action.yml +++ b/.github/actions/setup-sql-server/action.yml @@ -8,6 +8,7 @@ runs: shell: pwsh run: | "${{ github.action_path }}" >> $Env:GITHUB_PATH + - name: Set up SQL Server shell: pwsh run: Initialize-SqlServer diff --git a/.github/actions/verify-submodule-pull-request/action.yml b/.github/actions/verify-submodule-pull-request/action.yml index 9bcd51500..87ada6bef 100644 --- a/.github/actions/verify-submodule-pull-request/action.yml +++ b/.github/actions/verify-submodule-pull-request/action.yml @@ -18,7 +18,7 @@ runs: - name: Setup and Print PR Title shell: pwsh run: | - echo "Pull Request Title: ${{ inputs.title }}" + Write-Output "Pull Request Title: ${{ inputs.title }}" "${{ github.action_path }}" >> $Env:GITHUB_PATH diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 40d3bc6fb..4b75a25a8 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -118,7 +118,7 @@ jobs: cache-version: ${{ inputs.build-cache-version }} - name: Set up SQL Server - uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@dev + uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@issue/OSOE-156-code-styling - name: Set up Azurite uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@dev