mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 14:01:31 -06:00
280f8a7dbc
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
40 lines
942 B
YAML
40 lines
942 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
lint:
|
|
name: PS Script Analyzer
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: lint
|
|
uses: devblackops/github-action-psscriptanalyzer@master
|
|
with:
|
|
sendComment: false
|
|
settingsPath: lint/PSScriptAnalyser.ps1
|
|
failOnErrors: false
|
|
failOnWarnings: false
|
|
failOnInfos: false
|
|
test:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Pester
|
|
run: |
|
|
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
|
Install-Module -Name Pester -Force -SkipPublisherCheck -AllowClobber
|
|
shell: pwsh
|
|
|
|
- name: Run Pester tests
|
|
run: |
|
|
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
|
Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed
|
|
|
|
shell: pwsh
|
|
env:
|
|
TEMP: ${{ runner.temp }} |