-
Notifications
You must be signed in to change notification settings - Fork 1
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
Shawn Melton
committed
Oct 6, 2023
1 parent
0b239e3
commit 6ca5a78
Showing
27 changed files
with
210 additions
and
500 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,26 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
# | ||
# Copied from https://github.com/PowerShell/PowerShellEditorServices/blob/master/.editorconfig | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
insert_final_newline = true | ||
|
||
[*.{cs}] | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{json}] | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{ps1,psm1,psd1}] | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{ps1xml,props,xml,yaml}] | ||
indent_size = 2 |
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,4 @@ | ||
# Define the line ending behavior of the different file extensions | ||
# Set default behavior, in case users don't have core.autocrlf set. | ||
* text=auto | ||
* text eol=lf |
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,61 @@ | ||
name: Build on push | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: GitVersion | ||
id: gitversion | ||
uses: PoshCode/Actions/gitversion@v1 | ||
- name: Install-RequiredModules | ||
uses: PoshCode/Actions/install-requiredmodules@v1 | ||
- name: Build Module | ||
id: build | ||
uses: PoshCode/actions/build-module@v1 | ||
with: | ||
path: ${{ github.workspace }}/source | ||
version: ${{ steps.gitversion.outputs.LegacySemVerPadded }} | ||
destination: ${{ github.workspace }}/output | ||
- name: Upload Build Output | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Modules | ||
path: ${{ github.workspace }}/output | ||
- name: Upload Tests | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: PesterTests | ||
path: ${{ github.workspace }}/tests | ||
- name: Upload RequiredModules.psd1 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: RequiredModules | ||
path: ${{ github.workspace }}/RequiredModules.psd1 | ||
- name: Upload PSScriptAnalyzerSettings.psd1 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ScriptAnalyzer | ||
path: ${{ github.workspace }}/PSScriptAnalyzerSettings.psd1 | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
needs: build | ||
steps: | ||
- name: Download Build Output | ||
uses: actions/download-artifact@v2 | ||
- uses: PoshCode/Actions/install-requiredmodules@v1 | ||
- uses: PoshCode/Actions/pester@v1 | ||
with: | ||
codeCoveragePath: Modules/Configuration | ||
moduleUnderTest: Configuration | ||
additionalModulePaths: ${{ github.workspace }}/Modules | ||
- name: Upload Results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Pester Results | ||
path: ${{ github.workspace }}/*.xml |
This file was deleted.
Oops, something went wrong.
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
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,17 @@ | ||
mode: Mainline | ||
commit-message-incrementing: MergeMessageOnly | ||
assembly-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILDCOUNT ?? 0}' | ||
assembly-informational-format: '{NuGetVersionV2}+Build.{env:BUILDCOUNT ?? 0}.Date.{CommitDate}.Branch.{env:SAFEBRANCHNAME ?? unknown}.Sha.{Sha}' | ||
next-version: 1.0.0 | ||
branches: | ||
main: | ||
increment: Patch | ||
pull-request: | ||
tag: rc | ||
increment: Patch | ||
features: | ||
increment: Patch | ||
regex: .*?/ | ||
source-branches: | ||
- main | ||
- features |
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,2 +1,25 @@ | ||
# dbalight | ||
🔦 into your SQL Server to find, test, troubleshoot or report on your environment | ||
|
||
## Installation | ||
|
||
Install the [Microsoft.SqlServer.SqlManagedObjects](https://www.nuget.org/packages/Microsoft.SqlServer.SqlManagementObjects) from [Nuget.org](https://nuget.org) | ||
|
||
```posh | ||
Install-Package | ||
``` | ||
|
||
```posh | ||
Install-Module dbalight | ||
# or using Microsoft.PowerShell.PSResourceGet | ||
Install-PSResource dbalight | ||
``` | ||
|
||
## Usage | ||
|
||
WIP | ||
|
||
## Module History | ||
|
||
This module is one of those driven from the use and being maintainer of dbatools. The dbatools module has its place in where it should be used but in scenarios where you simply want to report or "get" things it is overkill. Those of us that don't want to revert to a bunch of `sqlserver/Invoke-SqlCmd` scripts still want to use SMO (SQL Server Management Objects) because it is cooler. |
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,7 +1,6 @@ | ||
@{ | ||
InvokeBuild = "5.*" | ||
Metadata = "[1.5.7,2.0)" | ||
ModuleBuilder = "1.*" | ||
PackageManagement = "[1.4.8,2.0)" | ||
Pester = "[5.4,6.0)" | ||
platyPS = "[0.14.2,1.0]" | ||
PSScriptAnalyzer = "[1.21,2.0)" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.