-
I’m trying to run a job with two different shells (powershell and pwsh). Attempt #1 If I specify this workflow configuration
The output for both the executions is the same (like if matrix.shell is not taken in account):
Attempt #2 If I specify this workflow configuration
The job isn’t executed, because of this error:
Is there a way to use matrix to specify the shell to be used? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I’m afraid matrix job does not support to set shell as configuration options for a GitHub virtual environment. On Windows, it always uses pwsh to run the commands by default, if you do not specify the shell on the steps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply, @brightran! I wanted to test my PowerShell module both on PowerShell and on PowerShell Core, and using matrix would have lead to a smaller workflow file. Not a huge problem, though. |
Beta Was this translation helpful? Give feedback.
I’m afraid matrix job does not support to set shell as configuration options for a GitHub virtual environment. On Windows, it always uses pwsh to run the commands by default, if you do not specify the shell on the steps.