Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4d9a388
Initial
adityapatwardhan Jun 13, 2025
ae4985c
PSresources
adityapatwardhan Jul 10, 2025
3f07dbe
PSResources get
adityapatwardhan Jul 13, 2025
41b4ac1
Fix get for psresources
adityapatwardhan Jul 22, 2025
c31b749
Set operations for psresources working
adityapatwardhan Jul 28, 2025
49ad580
fix enums
adityapatwardhan Jul 28, 2025
b8dec8e
Restores setting files
adityapatwardhan Jul 28, 2025
78651f2
schema updates via CR
adityapatwardhan Jul 29, 2025
42e30df
Schema updates
adityapatwardhan Jul 30, 2025
ca81899
Fix json and add regex
adityapatwardhan Jul 30, 2025
ae16a2b
Add tags
adityapatwardhan Jul 30, 2025
ab45a3c
Address CR feedback
adityapatwardhan Jul 30, 2025
ffa4f16
update resource names
adityapatwardhan Jul 30, 2025
c87275e
Refactor
adityapatwardhan Aug 5, 2025
bf95669
Refactor repository
adityapatwardhan Aug 5, 2025
16bee4a
Major refactor
adityapatwardhan Aug 11, 2025
a25c947
Might revert
adityapatwardhan Aug 21, 2025
670c011
Fixes to resource
adityapatwardhan Nov 4, 2025
26c3ed2
Add tests
adityapatwardhan Nov 4, 2025
f6095fc
In progress
adityapatwardhan Nov 19, 2025
6c2c3ac
Bug fixes and tests
adityapatwardhan Feb 11, 2026
d7b19fc
Before removing psresourcelist _exist
adityapatwardhan Feb 24, 2026
f575acd
After removing _exist for psresourcelist
adityapatwardhan Feb 25, 2026
42d5511
Implementation complete with tests passing
adityapatwardhan Feb 26, 2026
7bf64d0
More tests and bug fixes
adityapatwardhan Feb 28, 2026
8cc5f47
Update test/DscResource/configs/repository.unregister.dsc.yaml
adityapatwardhan Mar 13, 2026
950d0b2
CR feedback
adityapatwardhan Mar 20, 2026
78ac043
Misc fixes related to json schema validation
adityapatwardhan Mar 25, 2026
7b69254
Add installing DSC v3
adityapatwardhan Mar 30, 2026
a6ff6dc
Fix yaml
adityapatwardhan Mar 30, 2026
6a41472
Add quoted string for version in yaml
adityapatwardhan Mar 30, 2026
2ef6a5b
fix ps in yaml
adityapatwardhan Mar 30, 2026
7191ebe
Fix dsc installation
adityapatwardhan Mar 30, 2026
ad15716
Fix search directory
adityapatwardhan Mar 30, 2026
1bce77d
Add resources to path
adityapatwardhan Mar 30, 2026
79c94b1
Fix resource path in test
adityapatwardhan Mar 30, 2026
cdc78f1
Use the build soruce directory as the root
adityapatwardhan Mar 30, 2026
4c1e59f
Fix nuget.versioning loading
adityapatwardhan Mar 30, 2026
fb2132a
Add logging to nuget.versioning loading
adityapatwardhan Mar 30, 2026
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
10 changes: 10 additions & 0 deletions .ci/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ pr:
include:
- master

parameters:
- name: DSCVersion
default: '3.2.0-preview.13'
type: string

resources:
repositories:
- repository: ComplianceRepo
Expand Down Expand Up @@ -122,29 +127,34 @@ stages:
jobName: TestPkgWin
displayName: PowerShell Core on Windows
imageName: windows-latest
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgWinPS
displayName: Windows PowerShell on Windows
imageName: windows-latest
powershellExecutable: powershell
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgUbuntu
displayName: PowerShell Core on Ubuntu
imageName: ubuntu-latest
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgWinMacOS
displayName: PowerShell Core on macOS
imageName: macOS-latest
DSCVersion: ${{ parameters.DSCVersion }}

- template: test.yml
parameters:
jobName: TestPkgWinAzAuth
displayName: AzAuth PowerShell Core on Windows
imageName: windows-latest
useAzAuth: true
DSCVersion: ${{ parameters.DSCVersion }}
50 changes: 50 additions & 0 deletions .ci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ parameters:
powershellExecutable: pwsh
buildDirectory: '.'
useAzAuth: false
DSCVersion: '3.2.0-preview.13'

jobs:
- job: ${{ parameters.jobName }}
Expand Down Expand Up @@ -95,6 +96,55 @@ jobs:
displayName: 'Setup Azure Artifacts Credential Provider secret'
condition: eq(${{ parameters.useAzAuth }}, false)

- pwsh: |
$version = '${{ parameters.DSCVersion }}'
$packageName = "DSC-$version"
$ext = 'tar.gz'
$executableName = 'dsc'
$executableExt = if ($IsWindows) { '.exe' } else { '' }

$uri = if ($IsWindows) {
$ext = 'zip'
"https://github.com/PowerShell/DSC/releases/download/v$version/DSC-$version-x86_64-pc-windows-msvc.zip"
} elseif ($IsLinux) {
"https://github.com/PowerShell/DSC/releases/download/v$version/DSC-$version-x86_64-linux.tar.gz"
}
elseif ($IsMacOS) {
"https://github.com/PowerShell/DSC/releases/download/v$version/DSC-$version-aarch64-apple-darwin.tar.gz"
}
else {
throw "Unsupported OS platform"
}

$destPath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath "$packageName.$ext"

Write-Verbose -Verbose "Downloading DSC v3 from $uri to $destPath"

Invoke-WebRequest -Uri $uri -OutFile $destPath

if ($IsWindows) {
Expand-Archive -Path $destPath -DestinationPath $env:AGENT_TEMPDIRECTORY -Force -Verbose
}
else {
tar -xzf $destPath -C $env:AGENT_TEMPDIRECTORY
}

$executableFileName = $executableName + $executableExt

$executable = Get-ChildItem -Path $env:AGENT_TEMPDIRECTORY -File -Recurse -Verbose | Where-Object { $_.Name -eq $executableFileName } | Select-Object -First 1

if (-not $executable) {
throw "Could not find dsc executable in the downloaded package"
}

$dscRoot = Split-Path -Path $executable.FullName -Parent

$vstsCommandString = "vso[task.setvariable variable=DSC_ROOT]$dscRoot"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"

displayName: 'Install latest DSC v3'

- pwsh: |
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | Write-Verbose -Verbose
displayName: Capture environment
Expand Down
6 changes: 6 additions & 0 deletions doBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ function DoBuild
Write-Verbose -Verbose -Message "Copying PSResourceRepository.admx to '$BuildOutPath'"
Copy-Item -Path "${SrcPath}/PSResourceRepository.admx" -Dest "$BuildOutPath" -Force

Write-Verbose -Verbose -Message "Copying psresourceget.ps1 to '$BuildOutPath'"
Copy-Item -Path "${SrcPath}/dsc/psresourceget.ps1" -Dest "$BuildOutPath" -Force

Write-Verbose -Verbose -Message "Copying resource manifests to '$BuildOutPath'"
Copy-Item -Path "${SrcPath}/dsc/*.resource.json" -Dest "$BuildOutPath" -Force

# Build and place binaries
if ( Test-Path "${SrcPath}/code" ) {
Write-Verbose -Verbose -Message "Building assembly and copying to '$BuildOutPath'"
Expand Down
Loading
Loading