Skip to content

Commit 3481e32

Browse files
Library Progress (#3)
1 parent 761115f commit 3481e32

File tree

118 files changed

+687
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+687
-311
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and test library
2+
on: [push]
3+
defaults:
4+
run:
5+
shell: pwsh
6+
jobs:
7+
linux-tests:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Build the library
14+
shell: pwsh
15+
run: |
16+
sudo apt-get install msitools -y
17+
./build/build-core.ps1
18+
19+
- name: Execute sqlpackage
20+
shell: pwsh
21+
run: |
22+
return
23+
Import-Module ./dbatools.library.psd1 -Force
24+
25+
$libpath = Split-Path -Path (Get-Module dbatools*library).Path
26+
27+
if ($IsWindows) {
28+
$sqlpackage = "./lib/sqlpackage/windows/sqlpackage.exe"
29+
}
30+
if ($IsMacOS) {
31+
$sqlpackage = "./lib/sqlpackage/mac/sqlpackage"
32+
}
33+
if ($IsLinux) {
34+
$sqlpackage = "./lib/net6.0/sqlpackage"
35+
}
36+
37+
. $sqlpackage | Select-String "Specifies a name value pair" | Should -Not -BeNullorEmpty
38+
39+
- uses: actions/upload-artifact@v3
40+
with:
41+
name: library
42+
path: lib

.github/workflows/sqlpackage.yml

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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ debug.log
3737
bin/
3838
temp/
3939
runtimes/
40-
lib/
40+
lib/
41+
/third-party
42+
/third-party-licenses

.markdownlint.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code of Conduct
22

3-
SQLCollaborative Organization and the dbatools team is dedicated to providing a positive and harassment-free experience for everyone, regardless of age, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, ethnicity, race, religion, nationality, or level of experience. We do not tolerate harassment in any form, nor do we tolerate any behavior that would reasonably lead to someone being made to feel unsafe, insecure, or frightened for their physical or emotional well-being.
3+
The Data Platform Community Organization and the dbatools team is dedicated to providing a positive and harassment-free experience for everyone, regardless of age, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, ethnicity, race, religion, nationality, or level of experience. We do not tolerate harassment in any form, nor do we tolerate any behavior that would reasonably lead to someone being made to feel unsafe, insecure, or frightened for their physical or emotional well-being.
44

55
This applies to all interactions here on GitHub, Slack, YouTube comments and YouTube chat. All communication should be appropriate for a professional audience including people of many different backgrounds.
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# dbatools-library
1+
# dbatools.library

actions-build.ps1

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)