From c0124a3e0160f4b592b258c1581dcc5ad4873f15 Mon Sep 17 00:00:00 2001 From: John Heusinger Date: Mon, 29 May 2023 16:08:46 +0200 Subject: [PATCH] Add Windows PSv7, macOS, Ubuntu tests --- .github/workflows/build_and_test.yml | 65 +++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index dcd24a7f..e55f37eb 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -25,7 +25,7 @@ jobs: name: Release path: ./Release/ - test_on_windows: + test_on_windows_v5: name: Test Module on Windows (PS v5) needs: build_module runs-on: windows-latest @@ -45,3 +45,66 @@ jobs: shell: powershell run: | Invoke-Build -Task Test + + test_on_windows_v7: + name: Test Module on Windows (PS v7) + needs: build_module + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Download + uses: actions/download-artifact@v3 + with: + name: Release + path: ./Release/ + - name: Setup + shell: pwsh + run: | + ./Tools/setup.ps1 + Invoke-Build -Task ShowInfo + - name: Test + shell: pwsh + run: | + Invoke-Build -Task Test + + test_on_ubuntu: + name: Test Module on Ubuntu + needs: build_module + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Download + uses: actions/download-artifact@v3 + with: + name: Release + path: ./Release/ + - name: Setup + shell: pwsh + run: | + ./Tools/setup.ps1 + Invoke-Build -Task ShowInfo + - name: Test + shell: pwsh + run: | + Invoke-Build -Task Test + + test_on_macos: + name: Test Module on macOS + needs: build_module + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Download + uses: actions/download-artifact@v3 + with: + name: Release + path: ./Release/ + - name: Setup + shell: pwsh + run: | + ./Tools/setup.ps1 + Invoke-Build -Task ShowInfo + - name: Test + shell: pwsh + run: | + Invoke-Build -Task Test