Repository navigation
feat(tests): add PSScriptAnalyzer and Pester Framework - #45
Closed
ChrisBlankDe wants to merge 6 commits into
Closed
ChrisBlankDe wants to merge 6 commits into
ChrisBlankDe wants to merge 6 commits into
Conversation
…ntegration tests checks
ChrisBlankDe
marked this pull request as ready for review
April 15, 2026 09:12
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions CI pipeline and new Pester-based tests to enforce PowerShell code quality (via PSScriptAnalyzer) and validate override scripts under Scripts/Overrides/RunAlPipeline.
Changes:
- Introduces a GitHub Actions workflow to run Pester tests, publish test results, and report coverage.
- Adds a Pester suite to run PSScriptAnalyzer rules across scripts in
Scripts/. - Adds a Pester suite to verify override scripts in
Scripts/Overrides/RunAlPipelineare present and load as non-empty script blocks.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
.github/workflows/ci.yml |
New CI workflow to run tests, publish results/coverage, and perform basic script/YAML validation. |
Tests/PSScriptAnalyzer.Tests.ps1 |
Pester tests invoking PSScriptAnalyzer rules across repository PowerShell sources. |
Tests/RunAlPipelineOverrides.Tests.ps1 |
Pester tests validating presence and loadability of RunAlPipeline override scripts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
|
@ChrisBlankDe Some of this is already part of the new alpaca-al-go repo. Maybe we should keep this repo clean and go over my implementation in the new repo? |
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive Continuous Integration (CI) workflow for the repository, adds automated code quality validation, and expands the test suite for PowerShell scripts. The main focus is on automating test execution, enforcing code quality standards, and improving reliability through additional Pester and ScriptAnalyzer tests.
Continuous Integration and Code Quality Automation:
.github/workflows/ci.ymlfile that defines a multi-stage GitHub Actions workflow for CI. This workflow runs Pester tests, collects code coverage, publishes test and coverage reports, and validates PowerShell and YAML files for syntax and readability. It also summarizes the CI results and fails the build if any validation or tests fail.Test Suite Enhancements:
Tests/PSScriptAnalyzer.Tests.ps1to automatically run PowerShell ScriptAnalyzer rules against all scripts in theScriptsdirectory, ensuring adherence to best practices and coding standards. Some rules are temporarily disabled with TODOs for future review.Tests/RunAlPipelineOverrides.Tests.ps1to verify that all override scripts inScripts/Overrides/RunAlPipelinecontain valid, non-empty script blocks and that the directory contains at least one override file.AB#4781