Skip to content

Commit a04955d

Browse files
authored
Save all coverage files to play (#3170)
* Save all coverage files to play Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> * Save them to latest as well Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --------- Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
1 parent ba04a22 commit a04955d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/jobs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,33 @@ jobs:
11621162
go tool cover -html=all.out -o coverage.html
11631163
./mc cp coverage.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
11641164
./mc cp coverage.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1165+
# save all other coverage
1166+
go tool cover -html=../integration/coverage/system.out -o system.html
1167+
./mc cp system.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1168+
./mc cp system.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1169+
./mc cp ../integration/coverage/system.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1170+
./mc cp ../integration/coverage/system.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1171+
go tool cover -html=../replication/coverage/replication.out -o replication.html
1172+
./mc cp replication.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1173+
./mc cp replication.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1174+
./mc cp ../replication/coverage/replication.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1175+
./mc cp ../replication/coverage/replication.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1176+
go tool cover -html=../sso-integration/coverage/sso-system.out -o sso-system.html
1177+
./mc cp sso-system.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1178+
./mc cp sso-system.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1179+
./mc cp ../sso-integration/coverage/sso-system.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1180+
./mc cp ../sso-integration/coverage/sso-system.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1181+
go tool cover -html=../restapi/coverage/coverage.out -o coverage.html
1182+
./mc cp coverage.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1183+
./mc cp coverage.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1184+
./mc cp ../restapi/coverage/coverage.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1185+
./mc cp ../restapi/coverage/coverage.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1186+
go tool cover -html=../pkg/coverage/coverage-pkg.out -o coverage-pkg.html
1187+
./mc cp coverage-pkg.html play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1188+
./mc cp coverage-pkg.html play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1189+
./mc cp ../pkg/coverage/coverage-pkg.out play/builds/${{ github.repository }}/${{ github.event.number }}/${{ github.run_id }}/ || true
1190+
./mc cp ../pkg/coverage/coverage-pkg.out play/builds/${{ github.repository }}/${{ github.event.number }}/latest/ || true
1191+
./mc anonymous set public play/builds
11651192
else
11661193
echo "Play is down, please report it on hack channel, no coverage is going to be uploaded!!!"
11671194
fi

0 commit comments

Comments
 (0)