Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/actions/cleanup-and-coverage/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
codecov-token:
description: 'Codecov token for uploading reports'
required: true
job-name:
description: 'Used to locate coverage dir (/tmp/coverage/<job-name>); pass matrix.job-name for matrix jobs.'
required: false
default: '${{ github.job }}'
flags:
description: 'Flags to identify the coverage report'
required: false
Expand All @@ -35,6 +39,6 @@ runs:
uses: codecov/codecov-action@v5
with:
token: ${{ inputs.codecov-token }}
directory: /tmp/coverage/${{ github.job }}
directory: /tmp/coverage/${{ inputs.job-name }}
flags: ${{ inputs.flags }}
if: ${{ !cancelled() }}
4 changes: 3 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ jobs:
uses: ./.github/actions/cleanup-and-coverage
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
job-name: ${{ matrix.job-name }}
flags: ${{ matrix.job-name }}
if: always()
- name: Upload test results to Codecov
Expand Down Expand Up @@ -513,7 +514,7 @@ jobs:
S3DATA: scality
S3METADATA: scality
S3VAULT: scality
CLOUDSERVER_IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
CLOUDSERVER_IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
MPU_TESTING: "yes"
DEFAULT_BUCKET_KEY_FORMAT: ${{ matrix.vformat }}
ENABLE_NULL_VERSION_COMPAT_MODE: ${{ matrix.enable-null-compat }}
Expand Down Expand Up @@ -602,6 +603,7 @@ jobs:
uses: ./.github/actions/cleanup-and-coverage
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
job-name: ${{ matrix.job-name }}
flags: ${{ matrix.job-name }}
if: always()
- name: Upload test results to Codecov
Expand Down
Loading