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 @@ + +