Skip to content

Refactor and enhance GitHub Actions workflow and documentation#15

Merged
Shresht7 merged 18 commits intomainfrom
gh-actions
Mar 30, 2026
Merged

Refactor and enhance GitHub Actions workflow and documentation#15
Shresht7 merged 18 commits intomainfrom
gh-actions

Conversation

@Shresht7
Copy link
Copy Markdown
Owner

This pull request introduces several improvements to the build, test, and release automation for the PowerShell module, with a focus on modernizing the CI/CD workflows, enhancing developer experience, and improving documentation. The most significant changes include updating GitHub Actions workflows for publishing and testing, enhancing the Build.ps1 script with new options and better error handling, and refining documentation for clarity.

CI/CD Workflow Improvements:

  • The publish.yml workflow now triggers on new version tags, builds and tests the module, generates build attestations, and creates a GitHub release with the zipped module attached. The workflow uses updated actions and includes steps for provenance attestation and future PowerShell Gallery publishing.
  • The test.yml workflow now runs on both Ubuntu and Windows, only triggers for relevant file changes, uses updated actions, and builds the module before running tests.

Build Script Enhancements:

  • Build.ps1 now accepts -Configuration, -TargetFramework, and -Clean parameters, supports cleaning before build, handles locked DLL errors gracefully, and provides improved output and error messages. [1] [2] [3]

Developer Experience:

  • .vscode/tasks.json was updated so the build task defaults to Debug configuration, and the test task now builds the module before running tests, ensuring a consistent test environment. [1] [2]

Documentation Updates:

  • The README.md now provides clearer build and test instructions, details the automated publishing process, and emphasizes the need to update ModuleVersion before releases.

@Shresht7 Shresht7 self-assigned this Mar 30, 2026
@Shresht7 Shresht7 merged commit a4d43cf into main Mar 30, 2026
2 checks passed
@Shresht7 Shresht7 deleted the gh-actions branch March 30, 2026 20:54
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.

1 participant