Skip to content

Merge pull request #7 from stknohg/feat-new-assets #38

Merge pull request #7 from stknohg/feat-new-assets

Merge pull request #7 from stknohg/feat-new-assets #38

Workflow file for this run

# build workflow
name: build
on:
push:
branches: [ main ]
paths-ignore:
- 'FirstTimeInstaller/**'
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'FirstTimeInstaller/**'
- '**.md'
workflow_dispatch:
jobs:
# Pester test job
pester-test:
runs-on: windows-2022
steps:
# checkout
- uses: actions/checkout@v4
# Runs Pester all *.tests.ps1 scripts
- name: Run Pester tests
env:
GH_API_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Install the latest Pester module
Install-Module Pester -Force
Import-Module Pester
Write-Output "Run Pester $(Get-InstalledModule Pester | Select-Object -ExpandProperty Version) ..."
$config = [PesterConfiguration]@{
Run = @{
Path = './PSCoreUpdate.Tests/'
# TestExtension is default setting (.Tests.ps1)
}
Output = @{
Verbosity = 'Detailed'
}
}
Invoke-Pester -Configuration $config
shell: pwsh