-
-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (35 loc) · 979 Bytes
/
build.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
40
41
42
name: Build and test library
on: [push]
defaults:
run:
shell: pwsh
jobs:
linux-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the library
shell: pwsh
run: |
sudo apt-get install msitools -y
./build/build-core.ps1
- name: Execute sqlpackage
shell: pwsh
run: |
return
Import-Module ./dbatools.library.psd1 -Force
$libpath = Split-Path -Path (Get-Module dbatools*library).Path
if ($IsWindows) {
$sqlpackage = "./lib/sqlpackage/windows/sqlpackage.exe"
}
if ($IsMacOS) {
$sqlpackage = "./lib/sqlpackage/mac/sqlpackage"
}
if ($IsLinux) {
$sqlpackage = "./lib/net6.0/sqlpackage"
}
. $sqlpackage | Select-String "Specifies a name value pair" | Should -Not -BeNullorEmpty
- uses: actions/upload-artifact@v3
with:
name: library
path: lib