.gitlab-ci.yml 322 B

123456789101112131415161718
  1. stages:
  2. - analysis
  3. variables:
  4. GOPATH: '/runner-cache/zero'
  5. GOCACHE: '/runner-cache/zero'
  6. GOPROXY: 'https://goproxy.cn,direct'
  7. analysis:
  8. stage: analysis
  9. image: golang
  10. script:
  11. - go version && go env
  12. - go test -short $(go list ./...) | grep -v "no test"
  13. only:
  14. - merge_requests
  15. tags:
  16. - common