Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix configuration file #138

Merged
merged 5 commits into from
Dec 10, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion .configurations/configuration.dsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,25 @@ properties:
########################################################################
# Section: Configure Git Remotes
########################################################################
- resource: GitDSC/GitClone
id: clone-winget-dsc
directives:
description: Clone the microsoft/winget-dsc repository
allowPrerelease: true
settings:
HttpsUrl: https://github.com/microsoft/winget-dsc.git
RootDirectory: '${WinGetConfigRoot}\..'
- resource: GitDSC/GitRemote
dependsOn:
- clone-winget-dsc
id: add-microsoft-upstream
directives:
description: Add microsoft/winget-dsc as the upstream remote
allowPrerelease: true
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
########################################################################
Expand Down Expand Up @@ -81,6 +91,36 @@ properties:
Name: ms-vscode.powershell
Exist: true
########################################################################
# Section: Required dependencies to run Pester tests
########################################################################
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-powershell
directives:
description: Install PowerShell
allowPrerelease: true
settings:
id: Microsoft.PowerShell
source: winget
Ensure: Present
# - resource: Microsoft.WinGet.DSC/WinGetPackage
# id: install-python-12
# directives:
# description: Install Python 3.12
# allowPrerelease: true
# settings:
# id: Python.Python.3.12
# source: winget
# Ensure: Present
# - resource: Microsoft.WinGet.DSC/WinGetPackage
# id: install-nodejs
# directives:
# description: Install Node.js
# allowPrerelease: true
# settings:
# id: OpenJS.NodeJS
# source: winget
# Ensure: Present
########################################################################
# Section: Install PowerShell Modules
########################################################################
- resource: PowerShellModule/PSModuleResource
Expand All @@ -90,6 +130,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
Expand All @@ -98,5 +139,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
Loading