diff --git a/.github/workflows/system.yml b/.github/workflows/system.yml index 0e89c96..2907390 100644 --- a/.github/workflows/system.yml +++ b/.github/workflows/system.yml @@ -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