diff options
author | Jens Peters <jp7677@gmail.com> | 2022-04-01 17:42:24 +0300 |
---|---|---|
committer | Jens Peters <jp7677@gmail.com> | 2022-04-02 11:47:16 +0300 |
commit | c931ebb01923fca7e5b1922d7d9cafa95acb5d76 (patch) | |
tree | 604e2e592e598747e8313dfbb7eaa6a98f1a435f /.github | |
parent | 58f3c1738cc272870ea6ddb5da8193fba20916ac (diff) |
github: Output tests results to file
Present tests results in a later stage separately.
This avoids issues with missing console output from the tests runner.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/artifacts.yml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index b7ec367..9028aa5 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -33,10 +33,18 @@ jobs: else export VERSION_NAME="${GITHUB_REF##*/}-${GITHUB_SHA##*/}" fi - ./package-release.sh "${VERSION_NAME}" build --no-package --enable-tests - mkdir "${HOME}/dxvk-nvapi-wine-prefix" - DXVK_NVAPI_LOG_LEVEL=info WINEPREFIX="${HOME}/dxvk-nvapi-wine-prefix" WINEDEBUG="-all" wine "./build/dxvk-nvapi-${VERSION_NAME}/x64/nvapi64-tests.exe" [@unit-tests] echo "::set-output name=VERSION_NAME::${VERSION_NAME}" + ./package-release.sh "${VERSION_NAME}" build --no-package --enable-tests + mkdir "${HOME}/tests-prefix" + WINEPREFIX="${HOME}/tests-prefix" WINEDEBUG=-all wine \ + "./build/dxvk-nvapi-${VERSION_NAME}/x64/nvapi64-tests.exe" \ + --use-colour no \ + --out tests-results.log \ + [@unit-tests] + + - name: Present test results + if: success() || failure() + run: cat tests-results.log - name: Upload artifacts uses: actions/upload-artifact@v3 |