Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOE-156: Code styling #62

Merged
merged 16 commits into from
Oct 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/actions/setup-sql-server/Initialize-SqlServer.ps1
Original file line number Diff line number Diff line change
@@ -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'
}
1 change: 1 addition & 0 deletions .github/actions/setup-sql-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ runs:
shell: pwsh
run: |
"${{ github.action_path }}" >> $Env:GITHUB_PATH

- name: Set up SQL Server
shell: pwsh
run: Initialize-SqlServer
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/verify-submodule-pull-request/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-orchard-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down