dsccommunity / SqlServerDsc

This module contains DSC resources for deployment and configuration of Microsoft SQL Server.
MIT License
360 stars 227 forks source link

SqlServerDsc: Fix pipeline script #1875

Closed johlju closed 1 year ago

johlju commented 1 year ago

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

None.

Task list


This change is Reviewable

johlju commented 1 year ago

This change need to be merged in Sampler before merging here. I will send in a PR to Sampler.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1875 (93b48d9) into main (67aa742) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff          @@
##           main   #1875   +/-   ##
====================================
  Coverage    92%     92%           
====================================
  Files        85      85           
  Lines      7640    7640           
====================================
  Hits       7038    7038           
  Misses      602     602           
Flag Coverage Δ
unit 92% <ø> (ø)
johlju commented 1 year ago

The steps to install on a clean Windows 11 (release 22H2 Feb 2023).


# 1. Install "App Installer" (winget) from Microsoft Store
# 2. Install Git, from (Windows) PowerShell
winget install Git.Git
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Restart PowerShell session, then run
mkdir c:/source
cd c:/source
git clone https://github.com/dsccommunity/SqlServerDsc
cd ./SqlServerDsc
# Will install NuGet provider.
# If RequiredModules.psd1 contains prerelease - session need to be restarted. Gives error "Find-Module : A parameter cannot be found that matches parameter name 'AllowPrereleaseVersions'"
$InformationPreference = 'Continue'
.\build.ps1 -ResolveDependency -Tasks noop
``