Commit 0b8124f8 authored by Sean Erswell-Liljefelt's avatar Sean Erswell-Liljefelt
Browse files

chore: pin go module versions

parent d0de37a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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"
@@ -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