From 1a5f4c45915d184530a29cd86c32abf18a6ea29a Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Mon, 14 Nov 2022 15:48:10 -0600 Subject: [PATCH] Thanksgiving Update (#378) * Update Branch in script * Feature/tweaks (#320) * update tweaks * Update Branch in script Co-authored-by: DeveloperDurp * Update Branch in script * Feature/applications (#326) * Update Branch in script * Feature/pester (#321) * Update Branch in script * pester for configs * Update Branch in script * update describe * github action * test pipeline * test pipeline * test pipeline * test pipeline * test pipeline * test windows container * gui tests * Updated applications.json to stop failing test * test pipeline * test pipeline * test pipeline * add test for original values if tweak is configured * test pipeline * test pipeline * remove merge request * added test to ensure main script functions Co-authored-by: ChrisTitusTech Co-authored-by: DeveloperDurp * Update Branch in script * update pipeline * Update Branch in script * update pipeline * update pipeline * update pipeline * testing psmodule * Update Branch in script * update applications to use json Co-authored-by: DeveloperDurp Co-authored-by: ChrisTitusTech * Update Branch in script * Feature/update runspace (#327) * Update Branch in script * update runspace * fix wording * update logic Co-authored-by: DeveloperDurp * Update Branch in script * Feature/Change-dns (#334) * Added option for change dns * Update Branch in script Co-authored-by: padsalatushal * Update Branch in script * Update test from hotfixes (#349) * Feature/pester (#321) * Update Branch in script * pester for configs * Update Branch in script * update describe * github action * test pipeline * test pipeline * test pipeline * test pipeline * test pipeline * test windows container * gui tests * Updated applications.json to stop failing test * test pipeline * test pipeline * test pipeline * add test for original values if tweak is configured * test pipeline * test pipeline * remove merge request * added test to ensure main script functions Co-authored-by: ChrisTitusTech Co-authored-by: DeveloperDurp * Update Branch in script * Hotfix/fixapplications (#329) * Update Branch in script * fix typo Co-authored-by: DeveloperDurp * spelling (#332) * Update Branch in script * Update Branch in script Co-authored-by: DeveloperDurp Co-authored-by: ChrisTitusTech Co-authored-by: DeveloperDurp Co-authored-by: Archead <55419973+archead@users.noreply.github.com> * Update Branch in script * fix install spam * Add Toggle for System Dark Mode (#358) * Add Dark Mode System Toggles * Add Dark Mode System Buttons * Try to combine Dark Mode Toggles * Remove Dark Mode System Button test * Fix text i forgot to change between tests. * Add Disable and Enable Mouse Acceleration Tweaks (#362) Co-authored-by: Chris Titus * New Apps and winget install * Change mouse hover time * Add Ultimate Performance add/remove buttons (#367) * Add Dark Mode System Toggles * Add Dark Mode System Buttons * Try to combine Dark Mode Toggles * Remove Dark Mode System Button test * Fix text i forgot to change between tests. * Add Ultimate Performance * Add ultimate performance button * setting correct username for mainwindow for testing (revert before pull) * fix typo * Update MainWindow.xaml * add ult perf buttons * add remove button for ult perf plan * remove setactive command for powercfg due to incompatibility * Update winutil.ps1 * set back to christitus github for mainwin download * remove thing i added that isnt needed * Autologin fix - curl addition * remove powerrun * fix uneven buttons * fix gui uniformity * Update winutil.ps1 * Update Branch in script * Update runspace.ps1 * Update Branch in script Co-authored-by: ChrisTitusTech Co-authored-by: DeveloperDurp Co-authored-by: DeveloperDurp Co-authored-by: Padsala Tushal <57517785+padsalatushal@users.noreply.github.com> Co-authored-by: padsalatushal Co-authored-by: Archead <55419973+archead@users.noreply.github.com> Co-authored-by: lavavex <27239435+lavavex@users.noreply.github.com> Co-authored-by: sidibu <55976675+sidibu@users.noreply.github.com> --- .github/workflows/release.yaml | 28 +- MainWindow-runspace.xaml | 2 + MainWindow.xaml | 584 ++++++++++++++++---------------- config/applications.json | 280 ++++++++++------ config/helperscript.ps1 | 7 +- config/tweaks.json | 50 +++ pester/winutil.Tests.ps1 | 83 +++-- runspace.ps1 | 93 ++++- winutil.ps1 | 597 ++++++++------------------------- 9 files changed, 819 insertions(+), 905 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c6449f80..8e8896ca 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,28 @@ on: push: 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: @@ -13,9 +35,9 @@ jobs: - name: Create local changes run: | sed -i "/\$BranchToUse = /c\$BranchToUse = '$GITHUB_REF_NAME'" $GITHUB_WORKSPACE/runspace.ps1 - cat $GITHUB_WORKSPACE/runspace.ps1 - sed -i "/\$BranchToUse = /c\$BranchToUse = '$GITHUB_REF_NAME'" $GITHUB_WORKSPACE/runspace.ps1 - cat $GITHUB_WORKSPACE/winutil.ps1 + grep "\$BranchToUse =" $GITHUB_WORKSPACE/runspace.ps1 + sed -i "/\$BranchToUse = /c\$BranchToUse = '$GITHUB_REF_NAME'" $GITHUB_WORKSPACE/winutil.ps1 + grep "\$BranchToUse =" $GITHUB_WORKSPACE/winutil.ps1 - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Update Branch in script diff --git a/MainWindow-runspace.xaml b/MainWindow-runspace.xaml index 9799909c..9f819aed 100644 --- a/MainWindow-runspace.xaml +++ b/MainWindow-runspace.xaml @@ -236,6 +236,8 @@ + +