mirror of
https://github.com/versity/versitygw.git
synced 2026-02-05 01:40:42 +00:00
test: system.yml update
This commit is contained in:
33
.github/workflows/system.yml
vendored
33
.github/workflows/system.yml
vendored
@@ -126,7 +126,19 @@ jobs:
|
||||
BYPASS_ENV_FILE=true ${{ github.workspace }}/tests/setup_static.sh
|
||||
fi
|
||||
BYPASS_ENV_FILE=true $HOME/bin/bats ${{ github.workspace }}/$RUN_SET
|
||||
cat $COVERAGE_LOG
|
||||
if [ -e "$COVERAGE_LOG ]; then
|
||||
cat $COVERAGE_LOG
|
||||
fi
|
||||
|
||||
- name: Ensure coverage file exists
|
||||
run: |
|
||||
: > coverage.log
|
||||
|
||||
- name: Upload command coverage log
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coverage-${{ matrix.RUN_SET }}-${{ matrix.RECREATE_BUCKETS}}.log
|
||||
path: coverage.log
|
||||
|
||||
- name: Time report
|
||||
run: |
|
||||
@@ -137,3 +149,22 @@ jobs:
|
||||
- name: Coverage report
|
||||
run: |
|
||||
go tool covdata percent -i=cover
|
||||
|
||||
print-coverage:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- name: Download all S3 ops artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Merge (sort | uniq)
|
||||
run: |
|
||||
find artifacts -name coverage-*.log -print -exec cat {} \; \
|
||||
| sed '/^\s*$/d' \
|
||||
| sort -u \
|
||||
> combined-coverage.log
|
||||
|
||||
echo "Merged ops:"
|
||||
cat combined-coverage.log
|
||||
|
||||
Reference in New Issue
Block a user