From 840d96e5456b7eeb31d9506191f300f98b5d863c Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Mon, 20 Nov 2023 01:29:51 +0000 Subject: [PATCH] Enhancement (ci): Add powershell 7.4 test job --- .github/workflows/ci-master-pr.yml | 37 ++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 865606e..d7c6b6f 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -127,8 +127,31 @@ jobs: 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 + run: | + pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable' + - name: Test + run: | + pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1' + update-draft-release: - needs: [test-powershell-5-1-windows-2019, test-powershell-5-1-windows-2022, test-powershell-6-0, test-powershell-6-1, test-powershell-6-2, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2, test-powershell-7-3] + needs: + - test-powershell-5-1-windows-2019 + - test-powershell-5-1-windows-2022 + - test-powershell-6-0 + - test-powershell-6-1 + - test-powershell-6-2 + - test-powershell-7-0 + - test-powershell-7-1 + - test-powershell-7-2 + - test-powershell-7-3 + - test-powershell-7-4 if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: @@ -138,7 +161,17 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-draft-release: - needs: [test-powershell-5-1-windows-2019, test-powershell-5-1-windows-2022, test-powershell-6-0, test-powershell-6-1, test-powershell-6-2, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2, test-powershell-7-3] + needs: + - test-powershell-5-1-windows-2019 + - test-powershell-5-1-windows-2022 + - test-powershell-6-0 + - test-powershell-6-1 + - test-powershell-6-2 + - test-powershell-7-0 + - test-powershell-7-1 + - test-powershell-7-2 + - test-powershell-7-3 + - test-powershell-7-4 if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: