Only upload test artifacts if tests ran

develop
lethosor 2020-10-21 20:13:50 -04:00
parent 00f012d334
commit 9357c9f888
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 3 additions and 1 deletions

@ -86,6 +86,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX="$DF_FOLDER"
ninja -C build-ci install
- name: Run tests
id: run_tests
if: ${{ matrix.plugins == 'supported' }}
run: |
export TERM=dumb
@ -96,7 +97,8 @@ jobs:
cp "$DF_FOLDER/test_status.json" "$DF_FOLDER"/*.log artifacts
- name: Upload test artifacts
uses: actions/upload-artifact@v1
if: success() || failure()
if: (success() || failure()) && steps.run_tests.outcome != 'skipped'
continue-on-error: true
with:
name: test-artifacts
path: artifacts