Skip to content

Commit

Permalink
ci(test): skip test artifact upload on success
Browse files Browse the repository at this point in the history
It's only needed on failure, we can save time otherwise.

(cherry picked from commit 0ca476e)
  • Loading branch information
megglos authored and github-actions[bot] committed Apr 21, 2023
1 parent ac937b7 commit f0a1f8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
buildOutputFilePath: ${{ env.BUILD_OUTPUT_FILE_PATH }}
- name: Upload test artifacts
uses: ./.github/actions/collect-test-artifacts
if: always()
if: failure()
with:
name: "[IT] ${{ matrix.name }}"
unit-tests:
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
buildOutputFilePath: ${{ env.BUILD_OUTPUT_FILE_PATH }}
- name: Upload test artifacts
uses: ./.github/actions/collect-test-artifacts
if: always()
if: failure()
with:
name: "unit tests"
smoke-tests:
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
verify
- name: Upload test artifacts
uses: ./.github/actions/collect-test-artifacts
if: always()
if: failure()
with:
name: "[Smoke] ${{ matrix.os }} with ${{ matrix.arch }}"
property-tests:
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
buildOutputFilePath: ${{ env.BUILD_OUTPUT_FILE_PATH }}
- name: Upload test artifacts
uses: ./.github/actions/collect-test-artifacts
if: always()
if: failure()
with:
name: Property Tests
go-client:
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
buildOutputFilePath: ${{ env.BUILD_OUTPUT_FILE_PATH }}
- name: Upload test artifacts
uses: ./.github/actions/collect-test-artifacts
if: always()
if: failure()
with:
name: Java 8 Client
codeql:
Expand Down

0 comments on commit f0a1f8b

Please sign in to comment.