forked from dataplat/dbatools.library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
761115f
commit 3481e32
Showing
118 changed files
with
687 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
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.core.library:2022.11.8 | ||
modules-to-cache-prerelease: dbatools.library:2022.11.8-preview | ||
|
||
- 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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,6 @@ debug.log | |
bin/ | ||
temp/ | ||
runtimes/ | ||
lib/ | ||
lib/ | ||
/third-party | ||
/third-party-licenses |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# dbatools-library | ||
# dbatools.library |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.