Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
92ccb30
Configure Dependabot for daily schedule with 7-day cooldown
MariusStorhaug Jan 22, 2026
7cb78f6
🩹 [Patch]: Update action versions in action.yml for stability and com…
MariusStorhaug Jan 22, 2026
15aec0a
Add core scripts for Pester execution and initialization
MariusStorhaug Jan 25, 2026
ac24d2f
fix: Add persist-credentials: false to checkout actions
MariusStorhaug Jan 25, 2026
a63b02b
Disable JSCPD linter and remove configuration file
MariusStorhaug Jan 25, 2026
e04ff6b
Rename Auto-Release to Release-GHRepository
MariusStorhaug Jan 25, 2026
34cc6e9
Fix version comment to use patch level
MariusStorhaug Jan 25, 2026
9261729
⬆️ Update GitHub-Script to v1.7.10
MariusStorhaug Jan 25, 2026
5f5ce55
fix: Update actions/upload-artifact to v6.0.0
MariusStorhaug Jan 27, 2026
4425df9
refactor: Simplify status reporting in Action-Test workflow
MariusStorhaug Jan 27, 2026
fbd56a0
fix: Align output table formatting in README.md
MariusStorhaug Jan 27, 2026
eaf8812
fix: Simplify prescript execution in action.yml
MariusStorhaug Jan 27, 2026
ca03809
feat: Add support for prescript execution in Action-Test workflow
MariusStorhaug Jan 27, 2026
778dc2c
fix: Resolve prescript path before execution in prescript.ps1
MariusStorhaug Jan 27, 2026
8446f83
fix: Update prescript path in Action-Test workflow and add missing pr…
MariusStorhaug Jan 27, 2026
db8a863
Fix code coverage path in 2-Standard test configuration
MariusStorhaug Jan 27, 2026
ead4e65
Add unique TestSuiteName to PrescriptFile test to avoid artifact name…
MariusStorhaug Jan 27, 2026
e546ed8
refactor: Simplify test job object structure and enhance outcome comp…
MariusStorhaug Jan 27, 2026
6f4ec70
fix: Correct indentation in comments across multiple script files for…
MariusStorhaug Jan 27, 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
4 changes: 3 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ updates:
- dependencies
- github-actions
schedule:
interval: weekly
interval: daily
cooldown:
default-days: 7
Comment thread
MariusStorhaug marked this conversation as resolved.
Comment thread
MariusStorhaug marked this conversation as resolved.
11 changes: 0 additions & 11 deletions .github/linters/.jscpd.json

This file was deleted.

18 changes: 0 additions & 18 deletions .github/release.yml

This file was deleted.

422 changes: 99 additions & 323 deletions .github/workflows/Action-Test.yml

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions .github/workflows/Auto-Release.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/Linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false

- name: Lint code base
uses: super-linter/super-linter@latest
uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2
Comment thread
MariusStorhaug marked this conversation as resolved.
env:
GITHUB_TOKEN: ${{ github.token }}
VALIDATE_BIOME_FORMAT: false
VALIDATE_JSCPD: false
VALIDATE_JSON_PRETTIER: false
VALIDATE_MARKDOWN_PRETTIER: false
VALIDATE_YAML_PRETTIER: false
37 changes: 37 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

run-name: "Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"

on:
pull_request:
Comment thread
MariusStorhaug marked this conversation as resolved.
branches:
- main
types:
- closed
- opened
- reopened
- synchronize
- labeled
paths:
- 'action.yml'
- 'src/**'
Comment thread
MariusStorhaug marked this conversation as resolved.

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write # Required to create releases
pull-requests: write # Required to create comments on the PRs

jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Release
uses: PSModule/Release-GHRepository@88c70461c8f16cc09682005bcf3b7fca4dd8dc1a # v2.0.1
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ jobs:
| `Path` | Path to where tests are located or a configuration file. | *(none)* |
| `ReportAsJson` | Output generated reports in JSON format in addition to the configured format through Pester. | `true` |
| `Prescript` | Script to be executed before the test run. This script is executed in the same context as the test run. | *(none)* |
| `Notice_Mode` | Controls when to show notices for test completion. Allows "Full" (show on success and failure), "Failed" (show only on failure), or "None" (disable notices). | `Failed` |
| `StepSummary_Mode` | Controls which tests to show in the GitHub step summary. Allows "Full" (all tests), "Failed" (only failed tests), or "None" (disable step summary). | `Failed` |
| `Notice_Mode` | Controls when to show notices for test completion.<br><ul><li>`Full` - show on success and failure</li><li>`Failed` - show only on failure</li><li>`None` - disable notices</li></ul> | `Failed` |
| `StepSummary_Mode` | Controls which tests to show in the GitHub step summary.<br><ul><li>`Full` - all tests</li><li>`Failed` - only failed tests</li><li>`None` - disable summary</li></ul> | `Failed` |
| `StepSummary_ShowTestOverview` | Controls whether to show the test overview table in the GitHub step summary. | `false` |
| `StepSummary_ShowConfiguration` | Controls whether to show the configuration details in the GitHub step summary. | `false` |
| `Run_Path` | Directories/files to be searched for tests. | *(none)* |
Expand Down Expand Up @@ -320,20 +320,20 @@ jobs:

The action provides the following outputs:

| Output | Description |
|--------|-------------|
| `Outcome` | The outcome of the test run (success/failure) |
| `Conclusion` | The conclusion of the test run (success/failure) |
| `Executed` | Whether tests were executed (True/False) |
| `Result` | Overall result of the Pester test run (Passed/Failed) |
| `FailedCount` | Number of failed tests |
| `FailedBlocksCount` | Number of failed blocks |
| `FailedContainersCount` | Number of failed containers |
| `PassedCount` | Number of passed tests |
| `SkippedCount` | Number of skipped tests |
| `InconclusiveCount` | Number of inconclusive tests |
| `NotRunCount` | Number of tests not run |
| `TotalCount` | Total count of tests |
| Output | Description |
|-------------------------|---------------------------------------------------|
| `Outcome` | The outcome of the test run (success/failure) |
| `Conclusion` | The conclusion of the test run (success/failure) |
| `Executed` | Whether tests were executed (True/False) |
| `Result` | Overall result of Pester test run (Passed/Failed) |
| `FailedCount` | Number of failed tests |
| `FailedBlocksCount` | Number of failed blocks |
| `FailedContainersCount` | Number of failed containers |
| `PassedCount` | Number of passed tests |
| `SkippedCount` | Number of skipped tests |
| `InconclusiveCount` | Number of inconclusive tests |
| `NotRunCount` | Number of tests not run |
| `TotalCount` | Total count of tests |

## Examples

Expand Down
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
using: composite
steps:
- name: Invoke-Pester (init)
uses: PSModule/GitHub-Script@v1
uses: PSModule/GitHub-Script@0097f3bbe3f413f3b577b9bcc600727b0ca3201a # v1.7.10
env:
PSMODULE_INVOKE_PESTER_INPUT_Path: ${{ inputs.Path }}
PSMODULE_INVOKE_PESTER_INPUT_Run_Path: ${{ inputs.Run_Path }}
Expand Down Expand Up @@ -341,7 +341,7 @@
Name: Invoke-Pester
Script: |
# Invoke-Pester (init)
${{ github.action_path }}/scripts/init.ps1
${{ github.action_path }}/src/init.ps1

- name: Invoke-Pester (exec)
shell: pwsh
Expand All @@ -358,11 +358,11 @@
id: test
run: |
# Invoke-Pester (exec)
${{ inputs.Prescript }}
${{ github.action_path }}/scripts/exec.ps1
${{ inputs.Prescript }} # zizmor: ignore[template-injection]
Comment thread Fixed
Comment thread
MariusStorhaug marked this conversation as resolved.
Outdated
${{ github.action_path }}/src/exec.ps1
Comment thread Fixed

- name: Upload test results - [${{ steps.test.outputs.TestSuiteName }}-TestResults]
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: ${{ steps.test.outputs.TestResultEnabled == 'true' && (success() || failure()) }}
with:
name: ${{ steps.test.outputs.TestSuiteName }}-TestResults
Expand All @@ -371,7 +371,7 @@
if-no-files-found: error

- name: Upload code coverage report - [${{ steps.test.outputs.TestSuiteName }}-CodeCoverage]
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: ${{ steps.test.outputs.CodeCoverageEnabled == 'true' && (success() || failure()) }}
with:
name: ${{ steps.test.outputs.TestSuiteName }}-CodeCoverage
Expand All @@ -398,4 +398,4 @@
PSMODULE_INVOKE_PESTER_INTERNAL_TotalCount: ${{ steps.test.outputs.TotalCount }}
run: |
# Status
${{ github.action_path }}/scripts/status.ps1
${{ github.action_path }}/src/status.ps1
Comment thread Dismissed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions tests/Show-Status.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<#
.DESCRIPTION
Displays the outcome and conclusion of an action step.
Used by workflow tests to verify action execution results.
#>

[CmdletBinding()]
param()

Write-Host "Outcome: $env:OUTCOME"
Write-Host "Conclusion: $env:CONCLUSION"
Loading
Loading