diff options
| author | Dan Engelbrecht <[email protected]> | 2023-02-23 13:29:54 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-23 04:29:54 -0800 |
| commit | 9439ffc0c83c8ed304149e598e7a33ec6e0be060 (patch) | |
| tree | 3f5237e4da0d7b2d1d7d476e40d4028f88c9531f /.github/workflows | |
| parent | add test for fnf responses in project store (#238) (diff) | |
| download | zen-9439ffc0c83c8ed304149e598e7a33ec6e0be060.tar.xz zen-9439ffc0c83c8ed304149e598e7a33ec6e0be060.zip | |
junit test reporting (#239)
- Feature: `--junit` switch to `xmake test` to generate junit style reports of tests.
- Feature: CI build on GitHub now uploads junit test reports as artifact to the check for PR validation and mainline validation
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/validate.yml | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a12878e87..e410a831c 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -73,13 +73,6 @@ jobs: .\vcpkg.exe integrate install cd .. -# - name: Cache vcpkg -# uses: actions/cache@v2 -# with: -# path: | -# ${{ github.workspace }}\.vcpkg\installed -# key: ${{ runner.os }}-validate-${{ matrix.config }}-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-${{ matrix.arch }}-v1 - - name: Config run: | xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }} @@ -89,10 +82,17 @@ jobs: - name: Build & Test if: ${{ matrix.config == 'debug' }} run: | - xmake test -v -y + xmake test -v -y --junit env: VCPKG_ROOT: ${{ github.workspace }}/.vcpkg + - name: Upload report + if: ${{ (failure() || success()) && (matrix.config == 'debug') }} + uses: actions/upload-artifact@v3 + with: + name: reports-win64 + path: build/reports/*.xml + - name: Bundle if: ${{ matrix.config == 'release' }} run: | @@ -144,13 +144,6 @@ jobs: ./bootstrap-vcpkg.sh cd .. -# - name: Cache vcpkg -# uses: actions/cache@v2 -# with: -# path: | -# ${{ github.workspace }}/.vcpkg/installed -# key: ${{ runner.os }}-validate-${{ matrix.config }}-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-${{ matrix.arch }}-v1 - - name: Config run: | xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }} @@ -160,10 +153,17 @@ jobs: - name: Build & Test if: ${{ matrix.config == 'debug' }} run: | - xmake test -v -y + xmake test -v -y --junit env: VCPKG_ROOT: ${{ github.workspace }}/.vcpkg + - name: Upload report + if: ${{ (failure() || success()) && (matrix.config == 'debug') }} + uses: actions/upload-artifact@v3 + with: + name: reports-linux + path: build/reports/*.xml + - name: Bundle if: ${{ matrix.config == 'release' }} run: | @@ -209,13 +209,6 @@ jobs: ./bootstrap-vcpkg.sh cd .. -# - name: Cache vcpkg -# uses: actions/cache@v2 -# with: -# path: | -# ${{ github.workspace }}/.vcpkg/installed -# key: ${{ runner.os }}-validate-${{ matrix.config }}-${{env.VCPKG_VERSION}}-${{ hashFiles('xmake.lua') }}-${{ matrix.arch }}-v1 - - name: Config run: | xmake config -v -y -m ${{ matrix.config }} --arch=${{ matrix.arch }} @@ -225,10 +218,17 @@ jobs: - name: Build & Test if: ${{ matrix.config == 'debug' }} run: | - xmake test -v -y + xmake test -v -y --junit env: VCPKG_ROOT: ${{ github.workspace }}/.vcpkg + - name: Upload report + if: ${{ (failure() || success()) && (matrix.config == 'debug') }} + uses: actions/upload-artifact@v3 + with: + name: reports-macos + path: build/reports/*.xml + - name: Bundle if: ${{ matrix.config == 'release' }} run: | |