From d417874608c5b7b0186a8244d1e94820bb545245 Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Tue, 10 May 2022 22:12:32 -0400 Subject: [PATCH] put the coverage file in play bucket (#1972) --- .github/workflows/jobs.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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}'`