From bbe66b8f52ddad52ff9b61ddfc22bd152bf33394 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 9 Mar 2025 20:43:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9F=20[Major:=20Bump=20`Invoke-Pester`?= =?UTF-8?q?=20to=20v4=20(#15)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This pull request includes updates to the `action.yml` file, bumping the version of the Ìnvoke-Pester` action and adjusting inputs to the updated version. ### Step Summary Configuration Changes: * 🌟 Removed the `StepSummary_Enabled` input to simplify the configuration options. * Introduced the `StepSummary_Mode` input to control which tests to show in the GitHub step summary, replacing the `StepSummary_ShowTests` input. * Changed the default value of `StepSummary_ShowTestOverview` to `false` to align with the new configuration approach. ### Pester Module Update: * Updated the Pester module usage from version 3 to version 4 to ensure compatibility with the latest features and improvements. ## Type of change - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [x] 🌟 [Breaking change] ## Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas --- action.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/action.yml b/action.yml index 209b5db..015de2b 100644 --- a/action.yml +++ b/action.yml @@ -41,17 +41,12 @@ inputs: Output generated reports in JSON format in addition to the configured format through Pester. required: false default: 'true' - StepSummary_Enabled: - description: | - Controls if a GitHub step summary should be shown. - required: false - default: 'true' StepSummary_ShowTestOverview: description: | Controls whether to show the test overview table in the GitHub step summary. required: false - default: 'true' - StepSummary_ShowTests: + default: 'false' + StepSummary_Mode: description: | Controls which tests to show in the GitHub step summary. Allows "Full", "Failed", or "None". required: false @@ -267,7 +262,7 @@ runs: Script: ${{ github.action_path }}/scripts/main.ps1 - name: Invoke-Pester - uses: PSModule/Invoke-Pester@v3 + uses: PSModule/Invoke-Pester@v4 id: test env: Settings: ${{ fromJson(steps.paths.outputs.result).Settings }} @@ -282,9 +277,8 @@ runs: Path: ${{ github.action_path }}/scripts/tests/PSScriptAnalyzer Run_Path: ${{ fromJson(steps.paths.outputs.result).CodePath }} ReportAsJson: ${{ inputs.ReportAsJson }} - StepSummary_Enabled: ${{ inputs.StepSummary_Enabled }} StepSummary_ShowTestOverview: ${{ inputs.StepSummary_ShowTestOverview }} - StepSummary_ShowTests: ${{ inputs.StepSummary_ShowTests }} + StepSummary_Mode: ${{ inputs.StepSummary_Mode }} StepSummary_ShowConfiguration: ${{ inputs.StepSummary_ShowConfiguration }} Run_ExcludePath: ${{ inputs.Run_ExcludePath }} Run_Exit: ${{ inputs.Run_Exit }}