Skip to content

Commit

Permalink
ci: run report creation and upload only in case of failure (#2325)
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Liva <[email protected]>
  • Loading branch information
thisthat authored Oct 24, 2023
1 parent 7e57ee1 commit ec11ffb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ jobs:
run: make integration-test

- name: Create reports
if: always()
if: failure()
working-directory: ./.github/scripts
run: ./create-reports-full.sh

- name: Upload cluster logs
if: always()
if: failure()
uses: actions/upload-artifact@v3
with:
name: logs-integration-tests-${{ inputs.helm-install }}-${{ inputs.scheduling-gates }}-${{ inputs.allowed-namespaces }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/load-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ jobs:
path: ./collected-metrics

- name: Create reports
if: always()
if: failure()
working-directory: ./.github/scripts
run: ./create-reports-toolkit.sh

- name: Upload cluster logs
if: always()
if: failure()
uses: actions/upload-artifact@v3
with:
name: logs-load-tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/performance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
make performance-test
- name: Create reports
if: always()
if: failure()
working-directory: ./.github/scripts
run: ./create-reports-toolkit.sh

- name: Upload cluster logs
if: always()
if: failure()
uses: actions/upload-artifact@v3
with:
name: logs-performance-tests
Expand Down

0 comments on commit ec11ffb

Please sign in to comment.