Skip to content

Commit bbe66b8

Browse files
🌟 [Major: Bump Invoke-Pester to v4 (#15)
## 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 <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [x] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 03e40bf commit bbe66b8

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

action.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,12 @@ inputs:
4141
Output generated reports in JSON format in addition to the configured format through Pester.
4242
required: false
4343
default: 'true'
44-
StepSummary_Enabled:
45-
description: |
46-
Controls if a GitHub step summary should be shown.
47-
required: false
48-
default: 'true'
4944
StepSummary_ShowTestOverview:
5045
description: |
5146
Controls whether to show the test overview table in the GitHub step summary.
5247
required: false
53-
default: 'true'
54-
StepSummary_ShowTests:
48+
default: 'false'
49+
StepSummary_Mode:
5550
description: |
5651
Controls which tests to show in the GitHub step summary. Allows "Full", "Failed", or "None".
5752
required: false
@@ -267,7 +262,7 @@ runs:
267262
Script: ${{ github.action_path }}/scripts/main.ps1
268263

269264
- name: Invoke-Pester
270-
uses: PSModule/Invoke-Pester@v3
265+
uses: PSModule/Invoke-Pester@v4
271266
id: test
272267
env:
273268
Settings: ${{ fromJson(steps.paths.outputs.result).Settings }}
@@ -282,9 +277,8 @@ runs:
282277
Path: ${{ github.action_path }}/scripts/tests/PSScriptAnalyzer
283278
Run_Path: ${{ fromJson(steps.paths.outputs.result).CodePath }}
284279
ReportAsJson: ${{ inputs.ReportAsJson }}
285-
StepSummary_Enabled: ${{ inputs.StepSummary_Enabled }}
286280
StepSummary_ShowTestOverview: ${{ inputs.StepSummary_ShowTestOverview }}
287-
StepSummary_ShowTests: ${{ inputs.StepSummary_ShowTests }}
281+
StepSummary_Mode: ${{ inputs.StepSummary_Mode }}
288282
StepSummary_ShowConfiguration: ${{ inputs.StepSummary_ShowConfiguration }}
289283
Run_ExcludePath: ${{ inputs.Run_ExcludePath }}
290284
Run_Exit: ${{ inputs.Run_Exit }}

0 commit comments

Comments
 (0)