Skip to content

New pack task using PSResourceGet - #555

Merged
gaelcolas merged 14 commits into
mainfrom
f/newpack
Mar 31, 2026
Merged

gaelcolas merged 14 commits into
mainfrom
f/newpack

Conversation

@gaelcolas

@gaelcolas gaelcolas commented Feb 13, 2026 •

Copy link
Copy Markdown
Owner

Just creating PR to see how the build behaves.
This is not complete. do not merge for now.


This change is Reviewable

Repository owner deleted a comment from azure-pipelines Bot Mar 30, 2026
@gaelcolas gaelcolas changed the title initial change for new pack task [Do not merge] initial change for new pack task Mar 31, 2026
@gaelcolas gaelcolas changed the title initial change for new pack task New pack task using PSResourceGet Mar 31, 2026
@gaelcolas
gaelcolas enabled auto-merge (squash) March 31, 2026 07:38
@gaelcolas
gaelcolas disabled auto-merge March 31, 2026 07:38
@gaelcolas
gaelcolas requested a review from Copilot March 31, 2026 07:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR experiments with switching the module “pack” workflow to a new PSResourceGet-based packaging task, along with associated task/test refactors and pipeline updates.

Changes:

  • Add package_psresource_nupkg task (PSResourceGet) and related release/publish task split-outs.
  • Update build workflows/pipeline to use the new pack task and run packaging on Ubuntu.
  • Add/move unit tests for the new/reorganized tasks; refresh README/changelog and update branding assets.

Reviewed changes

Copilot reviewed 28 out of 31 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tests/Unit/tasks/SetPsModulePath.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/release.psresource.build.Tests.ps1 Add unit tests for new PSResourceGet-based release/pack task.
tests/Unit/tasks/release.module.build.Tests.ps1 Remove migrated tests; add stubs for PSResourceGet cmdlets in publish tests.
tests/Unit/tasks/publish.nuget.build.Tests.ps1 Add unit tests for extracted NuGet publish task file.
tests/Unit/tasks/JaCoCo.coverage.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/Invoke-Pester.pester.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/GuestConfig.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/generateHelp.PlatyPS.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/DeployAll.PSDeploy.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/Create_Release_Git_Tag.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/Create_Changelog_Branch.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/Clean.ModuleBuilder.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/ChocolateyPackage.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/tasks/Changelog.changelogmanagement.build.Tests.ps1 Add unit tests for extracted changelog task file.
tests/Unit/tasks/Build-Module.ModuleBuilder.build.Tests.ps1 Fix test description wording (“correctly”).
tests/Unit/scripts/Set-SamplerTaskVariable.Tests.ps1 Fix test description wording (“correctly”).
Sampler/Templates/Build/Resolve-Dependency.psd1.template Comment/format PSResourceGet-related optional settings.
Sampler/assets/sampler.svg Replace/update SVG asset.
Sampler/assets/Sampler_512.png Add/update raster asset (binary).
Resolve-Dependency.psd1 Comment out compatibility-module defaults.
RequiredModules.psd1 Add Microsoft.PowerShell.PSResourceGet to required modules list.
README.md Refresh intro text and add logo image reference.
CHANGELOG.md Document addition of package_psresource_nupkg.
build.yaml Switch pack workflow to package_psresource_nupkg (old task commented).
azure-pipelines.yml Run packaging job on ubuntu-latest instead of Windows.
.build/tasks/release.psresource.build.ps1 New task file: PSResourceGet-based packaging + PSResource publish task.
.build/tasks/release.module.build.ps1 Remove tasks moved into new task files.
.build/tasks/publish.nuget.build.ps1 New task file: NuGet publish task split out.
.build/tasks/DeployAll.PSDeploy.build.ps1 Add deprecation warning for PSDeploy support.
.build/tasks/Changelog.changelogmanagement.build.ps1 New task file: changelog/release-notes task split out.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CHANGELOG.md Resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gaelcolas
gaelcolas enabled auto-merge (squash) March 31, 2026 07:57
@gaelcolas
gaelcolas merged commit 3a4c84d into main Mar 31, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants