Test multiple PowerShell Core versions #430
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test multiple PowerShell Core versions | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| schedule: | |
| - cron: 0 0 * * * | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # This is necessary because there is no ubuntu version common to all the powershell docker images. | |
| versions: | |
| - {pwsh: 7.4, ubuntu: 20.04} | |
| - {pwsh: 7.3, ubuntu: 20.04} | |
| - {pwsh: 7.2, ubuntu: 20.04} | |
| - {pwsh: 7.1.5, ubuntu: 18.04} | |
| - {pwsh: 7.0.0, ubuntu: 18.04} | |
| - {pwsh: 6.1.3, ubuntu: 16.04} | |
| - {pwsh: 6.1.0, ubuntu: 16.04} | |
| - {pwsh: 6.0.4, ubuntu: 16.04} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build the Docker image | |
| run: | | |
| export VERSION=${{ matrix.versions.pwsh }} | |
| export UBUNTU_VERSION=${{ matrix.versions.ubuntu }} | |
| docker build . --file test/Dockerfile \ | |
| --tag powershell-featureflags-test:$VERSION \ | |
| --build-arg VERSION=$VERSION --build-arg UBUNTU_VERSION=$UBUNTU_VERSION | |
| docker run powershell-featureflags-test:$VERSION |