diff --git a/.github/workflows/jobs.yaml b/.github/workflows/jobs.yaml index 3f9222d98..41f1a0255 100644 --- a/.github/workflows/jobs.yaml +++ b/.github/workflows/jobs.yaml @@ -1340,6 +1340,17 @@ jobs: go build gocovmerge.go echo "put together the outs for final coverage resolution" ./gocovmerge ../integration/coverage/system.out ../replication/coverage/replication.out ../sso-integration/coverage/sso-system.out ../restapi/coverage/coverage.out ../pkg/coverage/coverage-pkg.out ../operator-integration/coverage/operator-api.out > all.out + echo "Download mc for Ubuntu" + wget https://dl.min.io/client/mc/release/linux-amd64/mc + echo "Change the permissions to execute mc command" + chmod +x mc + echo "Create the folder to put the all.out file" + ./mc mb --ignore-existing play/builds/ + echo "Copy the all.out file to play bucket" + echo ${{ github.repository }} + echo ${{ github.event.number }} + echo ${{ github.run_id }} + ./mc cp all.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ echo "grep to obtain the result" go tool cover -func=all.out | grep total > tmp2 result=`cat tmp2 | awk 'END {print $3}'`