Skip to content

Commit

Permalink
chore: store results of tests if they fail in release (#3661)
Browse files Browse the repository at this point in the history
---------

Signed-off-by: Pablo Hernán Carle <[email protected]>
Co-authored-by: Pablo Hernán Carle <[email protected]>
  • Loading branch information
pablocarle and Pablo Hernán Carle authored Jul 23, 2024
1 parent 0f62119 commit b89811f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/automated-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,17 @@ jobs:
BUILD_NUMBER: ${{ github.run_number }}
BRANCH_NAME: ${{ github.ref_name }}

- name: Store test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: ReleaseAutomated-${{ github.run_number }}
path: |
results/**
gateway-service/build/reports/**
discovery-service/build/reports/**
caching-service/build/reports/**
api-catalog-services/build/reports/**
zaas-service/build/reports/**
- uses: ./.github/actions/teardown
12 changes: 12 additions & 0 deletions .github/workflows/binary-snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,16 @@ jobs:
BUILD_NUMBER: ${{ github.run_number }}
BRANCH_NAME: ${{ github.ref_name }}

- name: Store test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: ReleaseSnapshotAuto-${{ github.run_number }}
path: |
gateway-service/build/reports/**
discovery-service/build/reports/**
caching-service/build/reports/**
api-catalog-services/build/reports/**
zaas-service/build/reports/**
- uses: ./.github/actions/teardown
12 changes: 12 additions & 0 deletions .github/workflows/binary-specific-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,16 @@ jobs:
BUILD_NUMBER: ${{ github.run_number }}
BRANCH_NAME: ${{ github.ref_name }}

- name: Store test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: BinarySpecificRelease-${{ github.run_number }}
path: |
gateway-service/build/reports/**
discovery-service/build/reports/**
caching-service/build/reports/**
api-catalog-services/build/reports/**
zaas-service/build/reports/**
- uses: ./.github/actions/teardown
12 changes: 12 additions & 0 deletions .github/workflows/branch-snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,17 @@ jobs:
BRANCH_NAME: ${{ github.ref_name }}
BUILD_NUMBER: ${{ github.run_number }}

- name: Store test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: BranchSnapshotRelease-${{ github.run_number }}
path: |
gateway-service/build/reports/**
discovery-service/build/reports/**
caching-service/build/reports/**
api-catalog-services/build/reports/**
zaas-service/build/reports/**
- uses: ./.github/actions/teardown

0 comments on commit b89811f

Please sign in to comment.