Skip to content

Commit

Permalink
Merge pull request #40 from leojonathanoh/enhancement/ci-add-powershe…
Browse files Browse the repository at this point in the history
…ll-7.3-and-7.4-test-jobs

Enhancement (ci): Add Powershell 7.3 and 7.4 test jobs
  • Loading branch information
leojonathanoh authored Mar 16, 2024
2 parents a0296e4 + f6bb590 commit b0397b5
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b0397b5

Please sign in to comment.