From e2086e5ef77eb143e71e1174ad5f4b259495bf3f Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 29 Nov 2022 17:54:18 -0600 Subject: [PATCH] Bugfixes before December (#465) * Update Branch in script * Pester Updates (#394) * Update Branch in script * Update Branch in script * remove redundant test pipeline * update unit tests * remove tests for features not yet implemented * test * update tests * test pipeline * test pipeline * test pipeline * test pipeline * test pipeline * test pipeline * update tests * update pipeline Co-authored-by: DeveloperDurp * Update Branch in script * Move preset buttons to function (#396) * Update Branch in script * update set-presets * Update Branch in script Co-authored-by: DeveloperDurp Co-authored-by: Chris Titus * Update Branch in script * Require Admin and attempt relaunch (#395) * Update Branch in script * migrate admin check from runspace.ps1 * changed relaunch to use $BranchToUse Co-authored-by: DeveloperDurp Co-authored-by: Chris Titus * Update Branch in script * Choco prep (#429) * Update Branch in script * update application file * Update Branch in script * update helper script and fix RevoUnInstaller Co-authored-by: DeveloperDurp Co-authored-by: Chris Titus * Update Branch in script * Feature/simplelogging (#431) * Update Branch in script * added transcript for simple logging * Update Branch in script * Update winutil.ps1 * Update Branch in script * Update runspace.ps1 * Update Branch in script Co-authored-by: DeveloperDurp Co-authored-by: Chris Titus Co-authored-by: ChrisTitusTech * Update Branch in script * Replaced Dark Theme Enable and Disable buttons with a toggle switch (#445) * Replaced Dark Theme Enable and Disable button with a toggle switch * Changed toggle switch background colour Co-authored-by: Chris Titus * Replace WMI calls (#450) Co-authored-by: Chris Titus * Fix Chocolatey installation detection (#452) * Fix error * Actually fix it this time * Add comments * Do it faster Co-authored-by: Chris Titus * 420/removeadmin (#462) * Update Branch in script * Remove Administrator Check Co-authored-by: DeveloperDurp Co-authored-by: Chris Titus * Update Branch in script * Update Branch in script Co-authored-by: ChrisTitusTech Co-authored-by: DeveloperDurp Co-authored-by: DeveloperDurp Co-authored-by: Josh Ackland Co-authored-by: Carter <60557606+Carterpersall@users.noreply.github.com> --- .github/workflows/release.yaml | 27 +- .../workflows/{test.yaml => unittests.yaml} | 7 +- .gitignore | 5 +- MainWindow.xaml | 81 +- config/applications.json | 882 ++++++++++-------- config/helperscript.ps1 | 15 +- config/preset.json | 60 +- pester/winutil.Tests.ps1 | 141 +-- runspace.ps1 | 2 +- winutil.ps1 | 190 ++-- 10 files changed, 763 insertions(+), 647 deletions(-) rename .github/workflows/{test.yaml => unittests.yaml} (88%) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8e8896ca..66d0120d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,31 +1,12 @@ name: Update Branch on: - push: + push: + branches: + - main + - test jobs: - test: - runs-on: windows-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} - - name: pester_tests - id: pester_tests - uses: zyborg/pester-tests-report@v1 - with: - include_paths: pester - report_name: Winutil_Tests - report_title: Winutil_Tests - github_token: ${{ secrets.GITHUB_TOKEN }} - tests_fail_step: true - - 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 }}' build: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test.yaml b/.github/workflows/unittests.yaml similarity index 88% rename from .github/workflows/test.yaml rename to .github/workflows/unittests.yaml index f31be666..273c4a3f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/unittests.yaml @@ -1,6 +1,7 @@ -name: Pester +name: Unit Tests -on: [push] +on: + push: jobs: test: @@ -16,6 +17,8 @@ jobs: with: include_paths: pester github_token: ${{ secrets.GITHUB_TOKEN }} + tests_fail_step: true + skip_check_run: true - name: dump test results shell: pwsh run: | diff --git a/.gitignore b/.gitignore index 2b8b1668..af9d3355 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,7 @@ winutil.pdb *.zip .vs/ *.psd* -pester.ps1 \ No newline at end of file +pester.ps1 +Microsoft.UI.Xaml* +winget.msixbundle +license1.xml \ No newline at end of file diff --git a/MainWindow.xaml b/MainWindow.xaml index fbc75089..931799dd 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -8,6 +8,78 @@ Background="#777777" WindowStartupLocation="CenterScreen" Title="Chris Titus Tech's Windows Utility" Height="800" Width="1200"> + + + @@ -232,9 +304,12 @@