-
-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (33 loc) · 1.13 KB
/
sqlpackage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: sqlpackage test
on: [pull_request]
jobs:
build:
name: Module imports on all platforms
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Install and cache PowerShell modules
uses: potatoqualitee/[email protected]
with:
modules-to-cache: dbatools.library:2023.1.29
- name: Execute sqlpackage
shell: pwsh
run: |
return
Import-Module ./dbatools.psd1 -ErrorAction Stop
(Get-DbaManagementObject).LoadTemplate -ne $null
$libpath = Split-Path -Path (Get-Module dbatools*library).Path
if ($IsWindows) {
$sqlpackage = Join-DbaPath -Path $libpath -ChildPath lib, win, sqlpackage.exe
}
if ($IsMacOS) {
$sqlpackage = Join-DbaPath -Path $libpath -ChildPath lib, mac, sqlpackage
}
if ($IsLinux) {
$sqlpackage = Join-DbaPath -Path $libpath -ChildPath lib, sqlpackage
}
. $sqlpackage | Select-String "Specifies a name value pair" | Should -Not -BeNullorEmpty