Skip to content

Commit

Permalink
Try to run on Windows for better MSSQL perf
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed Oct 3, 2023
1 parent ac2d068 commit ad18325
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/blackbox-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
test:
name: ${{ matrix.vendor }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.vendor == 'mssql' && 'windows-latest' || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -62,8 +62,17 @@ jobs:
run:
docker compose -f tests/blackbox/docker-compose.yml up auth-saml redis minio minio-mc -d --quiet-pull --wait

- name: Start services (MSSQL)
if: matrix.vendor == 'mssql'
shell: pwsh
run: |
choco install sql-server-2019 -y --no-progress --params="'/SAPWD:Test@123'"
Install-Module dbatools
Set-DbaTcpPort -SqlInstance MSSQLSERVER -Port 6105
docker compose -f tests/blackbox/docker-compose.yml up auth-saml redis minio minio-mc -d --quiet-pull --wait
- name: Start services (other vendors)
if: matrix.vendor != 'sqlite3'
if: matrix.vendor != 'sqlite3' && matrix.vendor != 'mssql'
run:
docker compose -f tests/blackbox/docker-compose.yml up ${{ matrix.vendor }} auth-saml redis minio minio-mc -d
--quiet-pull --wait
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blackbox-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Blackbox Tests
on:
pull_request:
branches:
- main
#- main
- next
paths:
- api/**
Expand Down

0 comments on commit ad18325

Please sign in to comment.