mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-15 15:15:51 -06:00
9eceae6751
* Update Unit Tests * Update pester from 4 to 5 * Update compile and releases * Working on making release tags * Update release.yaml * Compile Winutil --------- Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
40 lines
951 B
YAML
40 lines
951 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
lint:
|
|
name: PS Script Analyzer
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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@v2
|
|
|
|
- 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 }} |