aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-06 10:16:59 +0200
committerDan Engelbrecht <[email protected]>2022-04-12 09:57:09 +0200
commit48228142334a6c190483f2fcde22cb0af13800d4 (patch)
tree0ada56739a17dac5e7dcea34a1929200558cd16b
parentFixing label on runner (diff)
downloadzen-48228142334a6c190483f2fcde22cb0af13800d4.tar.xz
zen-48228142334a6c190483f2fcde22cb0af13800d4.zip
do tests inline with build
-rw-r--r--.github/workflows/on_prem_windows.yml58
1 files changed, 2 insertions, 56 deletions
diff --git a/.github/workflows/on_prem_windows.yml b/.github/workflows/on_prem_windows.yml
index dcc27c667..b60999c74 100644
--- a/.github/workflows/on_prem_windows.yml
+++ b/.github/workflows/on_prem_windows.yml
@@ -50,62 +50,8 @@ jobs:
env:
VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
- - name: Build
+ - name: Build & Test
run: |
- xmake build -v -y
+ xmake test -v -y
env:
VCPKG_ROOT: ${{ github.workspace }}/.vcpkg
-
- - name: Create Archive
- run: |
- cd .\build\windows\${{ matrix.arch }}\${{ matrix.config }}
- 7z a -r ..\..\..\..\windows-${{ matrix.arch }}-${{ matrix.config }}.zip *
- cd ..\..\..\..
-
- - name: Upload
- uses: actions/upload-artifact@v3
- with:
- name: windows-${{ matrix.arch }}-${{ matrix.config }}
- path: .\windows-${{ matrix.arch }}-${{ matrix.config }}.zip
- if-no-files-found: error
-
- windows-test:
- name: Test Windows
- runs-on: windows-2022
- needs: windows-build
- strategy:
- matrix:
- config:
- - 'debug'
- arch:
- - 'x64'
- test:
- - zencore-test
- - zenserver
- - zenserver-test
- - zenstore-test
- include:
- - test: "zenserver"
- args: "test"
- - test: "zenserver-test"
- args: "--test-case-exclude=websocket.basic"
-
- steps:
- - if: ${{ matrix.test == 'zenserver-test' }}
- uses: actions/checkout@v2
-
- - name: Download
- uses: actions/download-artifact@v3
- with:
- name: windows-${{ matrix.arch }}-${{ matrix.config }}
-
- - name: Extract Archive
- run: |
- mkdir -p .\build\windows\${{ matrix.arch }}\${{ matrix.config }}
- cd .\build\windows\${{ matrix.arch }}\${{ matrix.config }}
- 7z x ..\..\..\..\windows-${{ matrix.arch }}-${{ matrix.config }}.zip
- cd ..\..\..\..
-
- - name: Test ${{matrix.test}}
- run: |
- .\build\windows\${{ matrix.arch }}\${{ matrix.config }}\${{ matrix.test }}.exe ${{ matrix.args }}