From f6bb590d8ad4a346270127d6e004c11b0859cd4d Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sat, 16 Mar 2024 09:07:41 +0000 Subject: [PATCH] Enhancement (ci): Add Powershell 7.3 and 7.4 test jobs --- .github/workflows/ci-master-pr.yml | 36 +++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 3542e9a..4292cd5 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -29,7 +29,7 @@ jobs: test-powershell-6-0: runs-on: ubuntu-latest container: - image: mcr.microsoft.com/powershell:6.0.2-ubuntu-16.04 + image: mcr.microsoft.com/powershell:6.0.4-ubuntu-16.04 steps: - uses: actions/checkout@v3 - name: Powershell version @@ -81,7 +81,7 @@ jobs: test-powershell-7-1: runs-on: ubuntu-latest container: - image: mcr.microsoft.com/powershell:7.1.3-ubuntu-18.04 + image: mcr.microsoft.com/powershell:7.1.5-ubuntu-20.04 steps: - uses: actions/checkout@v3 - name: Powershell version @@ -94,7 +94,33 @@ jobs: test-powershell-7-2: runs-on: ubuntu-latest container: - image: mcr.microsoft.com/powershell:7.2.2-ubuntu-20.04 + image: mcr.microsoft.com/powershell:7.2-ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Powershell version + run: | + pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable' + - name: Test + run: | + pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1' + + test-powershell-7-3: + runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/powershell:7.3-ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Powershell version + run: | + pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable' + - name: Test + run: | + pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1' + + test-powershell-7-4: + runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/powershell:7.4-ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Powershell version @@ -113,6 +139,8 @@ jobs: - test-powershell-7-0 - test-powershell-7-1 - test-powershell-7-2 + - test-powershell-7-3 + - test-powershell-7-4 - test-publish-to-psgallery if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest @@ -157,6 +185,8 @@ jobs: - test-powershell-7-0 - test-powershell-7-1 - test-powershell-7-2 + - test-powershell-7-3 + - test-powershell-7-4 - test-publish-to-psgallery if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest