Loading jobs/go_unit_test/go_unit_test.yml +2 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ stages: go_unit_test: stage: static_tests image: golang:latest image: golang:1.16.3 variables: UT_WORK_DIR: $CI_PROJECT_DIR UT_TEST_CMD: "go test -v" Loading @@ -11,7 +11,7 @@ go_unit_test: # Switch to working directory - cd "$UT_WORK_DIR" # Install job dependencies - go get -u github.com/jstemmer/go-junit-report github.com/t-yuki/gocover-cobertura - go get -u github.com/jstemmer/go-junit-report@v0.9.1 github.com/t-yuki/gocover-cobertura@v0.0.0-20180217150009-aaee18c8195c # Execute Unit tests to get both the junit report and the coverage file - ${UT_TEST_CMD} -coverprofile=coverage.out ./... 2>&1 | go-junit-report -set-exit-code > report.xml # Output the coverage to stdout for coverage regex to read Loading Loading
jobs/go_unit_test/go_unit_test.yml +2 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ stages: go_unit_test: stage: static_tests image: golang:latest image: golang:1.16.3 variables: UT_WORK_DIR: $CI_PROJECT_DIR UT_TEST_CMD: "go test -v" Loading @@ -11,7 +11,7 @@ go_unit_test: # Switch to working directory - cd "$UT_WORK_DIR" # Install job dependencies - go get -u github.com/jstemmer/go-junit-report github.com/t-yuki/gocover-cobertura - go get -u github.com/jstemmer/go-junit-report@v0.9.1 github.com/t-yuki/gocover-cobertura@v0.0.0-20180217150009-aaee18c8195c # Execute Unit tests to get both the junit report and the coverage file - ${UT_TEST_CMD} -coverprofile=coverage.out ./... 2>&1 | go-junit-report -set-exit-code > report.xml # Output the coverage to stdout for coverage regex to read Loading