Skip to content

Action-Test - [feat: Always emit version regardless of publish decision #4] by @MariusStorhaug #46

Action-Test - [feat: Always emit version regardless of publish decision #4] by @MariusStorhaug

Action-Test - [feat: Always emit version regardless of publish decision #4] by @MariusStorhaug #46

Workflow file for this run

name: Action-Test
run-name: 'Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}'
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
Action-Test:
name: Action-Test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run Pester tests
id: pester
uses: PSModule/Invoke-Pester@266d1cf2532f572470b7c4463fa1072f2bfe4455 # v4.2.5
with:
Path: ./tests
Run_Path: ./scripts
Output_Verbosity: Detailed
TestResult_TestSuiteName: Resolve-PSModuleVersion
- name: Check test outcome
shell: pwsh
if: always()
env:
OUTCOME: ${{ steps.pester.outcome }}
PASSED: ${{ steps.pester.outputs.PassedCount }}
FAILED: ${{ steps.pester.outputs.FailedCount }}
TOTAL: ${{ steps.pester.outputs.TotalCount }}
run: |
Write-Host "Outcome: [$env:OUTCOME]"
Write-Host "Passed: [$env:PASSED]"
Write-Host "Failed: [$env:FAILED]"
Write-Host "Total: [$env:TOTAL]"
if ($env:OUTCOME -ne 'success') {
Write-Error 'Pester tests did not pass.'
exit 1
}