From 5a98af82c0ab755880f681d4ef74a08c715deac5 Mon Sep 17 00:00:00 2001 From: Nate Ferrell Date: Fri, 12 Jan 2024 00:04:31 -0600 Subject: [PATCH] feat: created matrix for test execution in parallel --- .github/workflows/build-test-deploy-powershell.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-deploy-powershell.yaml b/.github/workflows/build-test-deploy-powershell.yaml index 3fc352f8..e9c3ed15 100644 --- a/.github/workflows/build-test-deploy-powershell.yaml +++ b/.github/workflows/build-test-deploy-powershell.yaml @@ -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 @@ -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