Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Jan 12, 2024
1 parent 7f66776 commit e7d70b8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 29 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,25 @@ jobs:
failOnWarnings: false
failOnInfos: false
test:
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Create logs directory
run: New-Item -Path ${{ github.workspace }}\logs -ItemType Directory -Force
shell: pwsh
- name: pester_tests
id: pester_tests
uses: zyborg/pester-tests-report@v1
with:
include_paths: pester
github_token: ${{ secrets.GITHUB_TOKEN }}
tests_fail_step: true
skip_check_run: true
continue-on-error: true
- name: Move test results
run: Move-Item -Path ${{ github.workspace }}\_TMP\* -Destination ${{ github.workspace }}\logs
shell: pwsh
- name: dump test results
shell: pwsh
run: |
Write-Host 'Total Tests Executed...: ${{ steps.pester_tests.outputs.total_count }}'
Write-Host 'Total Tests PASSED.....: ${{ steps.pester_tests.outputs.passed_count }}'
Write-Host 'Total Tests FAILED.....: ${{ steps.pester_tests.outputs.failed_count }}'
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PowerShell
uses: PowerShell/setup-powershell@v1
with:
powershell-version: '7.0' # Specify the desired PowerShell version

- name: Install Pester
run: |
Install-Module -Name Pester -Force -AllowClobber
shell: pwsh

- name: Run Pester tests
run: |
# Change the path to your test file and script file accordingly
Invoke-Pester -Path 'pester/*.Tests.ps1'
shell: pwsh
6 changes: 3 additions & 3 deletions winutil.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Author : Chris Titus @christitustech
Runspace Author: @DeveloperDurp
GitHub : https://github.com/ChrisTitusTech
Version : 24.01.12
Version : 24.01.11
#>

Start-Transcript $ENV:TEMP\Winutil.log -Append
Expand All @@ -22,7 +22,7 @@ Add-Type -AssemblyName System.Windows.Forms
# Variable to sync between runspaces
$sync = [Hashtable]::Synchronized(@{})
$sync.PSScriptRoot = $PSScriptRoot
$sync.version = "24.01.12"
$sync.version = "24.01.11"
$sync.configs = @{}
$sync.ProcessRunning = $false

Expand Down Expand Up @@ -4382,7 +4382,7 @@ $inputXML = '<Window x:Class="WinUtility.MainWindow"
<Button Name="CheckboxFilterClear" Style="{StaticResource ClearButtonStyle}" Margin="184,0,0,0" Visibility="Collapsed"/>
</Grid>
<TextBlock Text="Version: 24.01.12" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
<TextBlock Text="Version: 24.01.11" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
<Button Content="&#xD7;" BorderThickness="0"
BorderBrush="Transparent"
Background="{MainBackgroundColor}"
Expand Down

0 comments on commit e7d70b8

Please sign in to comment.