From 2aee9b7052a1d08e5389be74fb61014ca33ad141 Mon Sep 17 00:00:00 2001 From: Gijs Reijn Date: Tue, 10 Dec 2024 19:43:42 +0100 Subject: [PATCH] Fix configuration file (#138) --- .configurations/configuration.dsc.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.configurations/configuration.dsc.yaml b/.configurations/configuration.dsc.yaml index 51049b00..da4858a8 100644 --- a/.configurations/configuration.dsc.yaml +++ b/.configurations/configuration.dsc.yaml @@ -29,7 +29,9 @@ properties: ######################################################################## # Section: Configure Git Remotes ######################################################################## + # Resource expects the repository already to be cloned to your local machine. If not, use the `GitDSC/GitClone` in conjunction - resource: GitDSC/GitRemote + dependsOn: id: add-microsoft-upstream directives: description: Add microsoft/winget-dsc as the upstream remote @@ -37,7 +39,7 @@ properties: settings: ProjectDirectory: '${WinGetConfigRoot}\..' RemoteName: upstream - RemoteUrl: https://github.com/microsoft/winget-pkgs.git + RemoteUrl: https://github.com/microsoft/winget-dsc.git ######################################################################## # Section: Install VS-Code ######################################################################## @@ -81,6 +83,18 @@ properties: Name: ms-vscode.powershell Exist: true ######################################################################## + # Section: Required dependencies to run DSC resources / tests + ######################################################################## + - resource: Microsoft.WinGet.DSC/WinGetPackage + id: install-powershell + directives: + description: Install PowerShell + allowPrerelease: true + settings: + id: Microsoft.PowerShell + source: winget + Ensure: Present + ######################################################################## # Section: Install PowerShell Modules ######################################################################## - resource: PowerShellModule/PSModuleResource @@ -90,6 +104,7 @@ properties: allowPrerelease: true settings: Module_Name: Pester + RequiredVersion: 5.6.1 # Pester ships in-box, that's why we need to specify the version Ensure: Present - resource: PowerShellModule/PSModuleResource id: install-psscriptanalyzer @@ -98,5 +113,6 @@ properties: allowPrerelease: true settings: Module_Name: PSScriptAnalyzer + RequiredVersion: 1.23.0 # This module might still not be installed because PowerShell extension includes it Ensure: Present configurationVersion: 0.2.0