|
| 1 | +name: First Responder Kit Integration Tests |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + workflow_dispatch: |
| 6 | + pull_request: |
| 7 | + types: [opened, review_requested, synchronize] |
| 8 | + |
| 9 | +jobs: |
| 10 | + build: |
| 11 | + name: Build |
| 12 | + runs-on: ubuntu-latest |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + SQL_ENGINE_VERSION: [2017,2019,2022] |
| 16 | + COLLATION: [SQL_Latin1_General_CP1_CS_AS] |
| 17 | + |
| 18 | + |
| 19 | + steps: |
| 20 | + - name: Checkout repository |
| 21 | + uses: actions/checkout@v4 |
| 22 | + |
| 23 | + - name: Install SqlServer Module |
| 24 | + shell: pwsh |
| 25 | + run: | |
| 26 | + Set-PSRepository -Name PSGallery -InstallationPolicy Trusted |
| 27 | + Install-Module SqlServer |
| 28 | + |
| 29 | + - name: Install SQL Server |
| 30 | + uses: potatoqualitee/mssqlsuite@v1.7 |
| 31 | + with: |
| 32 | + install: sqlengine |
| 33 | + version: ${{ matrix.SQL_ENGINE_VERSION }} |
| 34 | + collation: ${{ matrix.COLLATION }} |
| 35 | + |
| 36 | + - name: Check SQL Install |
| 37 | + run: | |
| 38 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d tempdb -Q "SELECT @@version as Version;" -I -b -t 60 |
| 39 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d tempdb -Q "SELECT SERVERPROPERTY('Collation') AS Collation;" -I -b -t 60 |
| 40 | +
|
| 41 | + - name: Deploy FRK |
| 42 | + run: | |
| 43 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzCache.sql" -I -b -t 60 |
| 44 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzWho.sql" -I -b -t 60 |
| 45 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_Blitz.sql" -I -b -t 60 |
| 46 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzFirst.sql" -I -b -t 60 |
| 47 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzAnalysis.sql" -I -b -t 60 |
| 48 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzBackups.sql" -I -b -t 60 |
| 49 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzIndex.sql" -I -b -t 60 |
| 50 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzInMemoryOLTP.sql" -I -b -t 60 |
| 51 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzLock.sql" -I -b -t 60 |
| 52 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -i "sp_BlitzQueryStore.sql" -I -b -t 60 |
| 53 | + sqlcmd -S localhost -U sa -P dbatools.I0 -d master -Q "SELECT * FROM sys.procedures WHERE name LIKE 'sp_Blitz%';" -I -b -t 60 |
| 54 | +
|
| 55 | + - name: Run Pester Tests |
| 56 | + shell: pwsh |
| 57 | + run: | |
| 58 | + cd tests |
| 59 | + ./run-tests.ps1 |
0 commit comments