Only need to keep the tests output if there has been a failure

This commit is contained in:
Hamish Coleman 2021-11-06 19:19:14 +00:00
parent 004ef6eaaf
commit 75a205ec69

View File

@ -95,14 +95,14 @@ jobs:
run: make test.units run: make test.units
shell: bash shell: bash
- if: ${{ always() }} - if: ${{ failure() }}
name: Move test outputs to an arch specific location name: Move test outputs to an arch specific location
shell: bash shell: bash
run: | run: |
mkdir -p tests/${{ matrix.os }} mkdir -p tests/${{ matrix.os }}
mv tests/*.out tests/${{ matrix.os }} mv tests/*.out tests/${{ matrix.os }}
- if: ${{ always() }} - if: ${{ failure() }}
name: Upload tests output name: Upload tests output
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -166,14 +166,14 @@ jobs:
run: make test.units run: make test.units
shell: bash shell: bash
- if: ${{ always() }} - if: ${{ failure() }}
name: Move test outputs to an arch specific location name: Move test outputs to an arch specific location
shell: bash shell: bash
run: | run: |
mkdir -p tests/${{ matrix.os }} mkdir -p tests/${{ matrix.os }}
mv tests/*.out tests/${{ matrix.os }} mv tests/*.out tests/${{ matrix.os }}
- if: ${{ always() }} - if: ${{ failure() }}
name: Upload tests output name: Upload tests output
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -241,14 +241,14 @@ jobs:
run: make test.units run: make test.units
shell: bash shell: bash
- if: ${{ always() }} - if: ${{ failure() }}
name: Move test outputs to an arch specific location name: Move test outputs to an arch specific location
shell: bash shell: bash
run: | run: |
mkdir -p tests/${{ matrix.os }} mkdir -p tests/${{ matrix.os }}
mv tests/*.out tests/${{ matrix.os }} mv tests/*.out tests/${{ matrix.os }}
- if: ${{ always() }} - if: ${{ failure() }}
name: Upload tests output name: Upload tests output
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with: