mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* chore: Upgrade Golang to 1.19 (#10176) (#10186) * Upgrade Golang to 1.19 Signed-off-by: OmarKalloush <[email protected]> * go mod tidy with go 1.19 Signed-off-by: OmarKalloush <[email protected]> * Replace deprecated ioutil Signed-off-by: OmarKalloush <[email protected]> * make codegen changes Signed-off-by: OmarKalloush <[email protected]> * Codegen Changes Signed-off-by: OmarKalloush <[email protected]> chore: upgrade golangci-lint to 1.50.1 Signed-off-by: Michael Crenshaw <[email protected]> missed a spot Signed-off-by: Michael Crenshaw <[email protected]> tidy Signed-off-by: Michael Crenshaw <[email protected]> fix bad merge Signed-off-by: Michael Crenshaw <[email protected]> Author: Michael Crenshaw <[email protected]> Co-Authored-By: OmarKalloush <[email protected]> fix indentation fix lint and codegen Signed-off-by: Michael Crenshaw <[email protected]> * 1.20 Signed-off-by: Michael Crenshaw <[email protected]> * fix lint errors Signed-off-by: Michael Crenshaw <[email protected]> * fix "syntax error: unexpected var after top level declaration" in "make test-race-local" Signed-off-by: Michael Crenshaw <[email protected]> --------- Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: OmarKalloush <[email protected]>
27 lines
620 B
Bash
Executable File
27 lines
620 B
Bash
Executable File
#!/bin/bash
|
|
set -eux -o pipefail
|
|
|
|
which go-junit-report || go install github.com/jstemmer/go-junit-report@latest
|
|
|
|
TEST_RESULTS=${TEST_RESULTS:-test-results}
|
|
TEST_FLAGS=
|
|
|
|
if test "${ARGOCD_TEST_PARALLELISM:-}" != ""; then
|
|
TEST_FLAGS="$TEST_FLAGS -p $ARGOCD_TEST_PARALLELISM"
|
|
fi
|
|
if test "${ARGOCD_TEST_VERBOSE:-}" != ""; then
|
|
TEST_FLAGS="$TEST_FLAGS -v"
|
|
fi
|
|
|
|
mkdir -p $TEST_RESULTS
|
|
|
|
report() {
|
|
set -eux -o pipefail
|
|
|
|
go-junit-report < $TEST_RESULTS/test.out > $TEST_RESULTS/junit.xml
|
|
}
|
|
|
|
trap 'report' EXIT
|
|
|
|
GODEBUG="tarinsecurepath=0,zipinsecurepath=0" go test $TEST_FLAGS -failfast $* 2>&1 | tee $TEST_RESULTS/test.out
|