Skip to content

Commit

Permalink
maybe powershell core is the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 27, 2020
1 parent 3ef3fd5 commit b5a34f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
conda init powershell
& "$env:GITHUB_WORKSPACE/.ci/test_windows.ps1"
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='SilentlyContinue'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }}"
powershell -noninteractive -command "try {{ $ErrorActionPreference='SilentlyContinue'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }}"
# $ErrorActionPreference = 'SilentlyContinue'
# $env:BUILD_SOURCESDIRECTORY = $env:GITHUB_WORKSPACE
Expand All @@ -99,3 +99,4 @@ jobs:
# * https://www.activestate.com/blog/optimizing-ci-cd-pipelines-in-github-actions/
# * https://www.gitbook.com/book/devopscollective/the-big-book-of-powershell-error-handling/details
# * https://stackoverflow.com/questions/8388650/powershell-how-can-i-stop-errors-from-being-displayed-in-a-script
# * great doc: https://github.com/MicrosoftDocs/PowerShell-Docs/issues/1583

0 comments on commit b5a34f8

Please sign in to comment.