I have a PowerShell module on github which has automation on AppVeyor including testing and publishing.
One of the recent changes broke the new version with Windows PowerShell. Some groups still run on Windows PowerShell and they informed me about this (former colleagues).
My question is if and how can a given module be tested for both versions with Pester. Obviously on a windows system you can run the test with pwsh
or powershell
but I wonder if there is a cleaner setup powered by Pester
v5.
On top of that, I wonder how would this be possible with AppVeyor because from the doc there is no image with both v5 and v7 of powershell? As an alternative, the doc mentions that multiple images can be used but I don't understand what will happen. The goal is to test on windows and core and publish once.