Skip to content
Snippets Groups Projects
Commit 0f954f26 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

#1 add Gitlab CI pipelines

parent f0bdb11f
No related branches found
No related tags found
1 merge request!1Service skeleton with health check endpoints
Pipeline #49697 failed with stage
in 38 seconds
stages:
- test
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
lint:
image: golangci/golangci-lint:v1.44.2
stage: test
tags:
- amd64-docker
script:
- golangci-lint --version
- golangci-lint run
unit tests:
image: golang:1.17.7
stage: test
tags:
- amd64-docker
script:
- go version
- go test -race ./... -coverprofile=coverage.out
- go tool cover -func=coverage.out
run:
deadline: 5m
skip-dirs:
- vendor/
- .*fakes/
- .*generated/
skip-files:
- .*generated.go
linters:
disable-all: true
enable:
- megacheck
- govet
- deadcode
- errcheck
- goconst
- gocyclo
- goimports
- revive
- gosec
- ineffassign
- nakedret
- staticcheck
- structcheck
- unconvert
- varcheck
- vet
- vetshadow
- misspell
- staticcheck
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment