Skip to content

Commit 15aec0a

Browse files
Add core scripts for Pester execution and initialization
- Introduced `exec.ps1` to handle the execution of Pester tests, including setup, configuration import, and result handling. - Created `init.ps1` for initializing the environment, loading inputs, and configuring settings for Pester execution. - Added `status.ps1` to manage and output the status of test execution, including outcomes and counts of test results. - Implemented logging groups for better organization and readability of the script outputs. - Enhanced error handling and output formatting for improved user experience during test execution.
1 parent 7cb78f6 commit 15aec0a

6 files changed

Lines changed: 13 additions & 8 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Auto-Release
1+
name: Release
22

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

55
on:
6-
pull_request_target:
6+
pull_request:
77
branches:
88
- main
99
types:
@@ -12,6 +12,9 @@ on:
1212
- reopened
1313
- synchronize
1414
- labeled
15+
paths:
16+
- 'action.yml'
17+
- 'src/**'
1518

1619
concurrency:
1720
group: ${{ github.workflow }}-${{ github.ref }}
@@ -22,11 +25,13 @@ permissions:
2225
pull-requests: write # Required to create comments on the PRs
2326

2427
jobs:
25-
Auto-Release:
28+
Release:
2629
runs-on: ubuntu-latest
2730
steps:
2831
- name: Checkout Code
2932
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
with:
34+
persist-credentials: false
3035

31-
- name: Auto-Release
36+
- name: Release
3237
uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ runs:
341341
Name: Invoke-Pester
342342
Script: |
343343
# Invoke-Pester (init)
344-
${{ github.action_path }}/scripts/init.ps1
344+
${{ github.action_path }}/src/init.ps1
345345
346346
- name: Invoke-Pester (exec)
347347
shell: pwsh
@@ -359,7 +359,7 @@ runs:
359359
run: |
360360
# Invoke-Pester (exec)
361361
${{ inputs.Prescript }}
362-
${{ github.action_path }}/scripts/exec.ps1
362+
${{ github.action_path }}/src/exec.ps1
363363
364364
- name: Upload test results - [${{ steps.test.outputs.TestSuiteName }}-TestResults]
365365
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
@@ -398,4 +398,4 @@ runs:
398398
PSMODULE_INVOKE_PESTER_INTERNAL_TotalCount: ${{ steps.test.outputs.TotalCount }}
399399
run: |
400400
# Status
401-
${{ github.action_path }}/scripts/status.ps1
401+
${{ github.action_path }}/src/status.ps1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)