Skip to content

Commit

Permalink
feat: created matrix for test execution in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Jan 12, 2024
1 parent ef986e7 commit 5a98af8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-test-deploy-powershell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
needs:
- build
timeout-minutes: 120
env:
TEST_SHELL: ${{ matrix.os == 'windows-2022' && 'powershell' || 'pwsh' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -54,8 +56,15 @@ jobs:
name: BuildOutput
path: BuildOutput

- name: Test Module - ${{ matrix.os }}
shell: "${{ matrix.os == 'windows-2022' && 'powershell' || 'pwsh' }}"
- name: Test Module - pwsh (${{ matrix.os }})
shell: pwsh
if: ${{ matrix.os != 'windows-2022' }}
run: |
. ./build.ps1 -Task Test
- name: Test Module - PowerShell (${{ matrix.os }})
shell: powershell
if: ${{ matrix.os == 'windows-2022' }}
run: |
. ./build.ps1 -Task Test
Expand Down

0 comments on commit 5a98af8

Please sign in to comment.