old_console/correlator/cicd/test.sh
2024-11-02 14:12:45 +03:00

11 lines
No EOL
227 B
Bash

#!/bin/bash
set -ex # fail on any error
PKG=$(cat go.mod | grep module | awk '{print $2}')
PKG_LIST=$(go list ${PKG}/... )
for CUR_PKG in $PKG_LIST
do
go test -timeout 600s -coverprofile=/tmp/go-code-cover $CUR_PKG
done