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

#1 add Gitlab CI pipelines for unit tests and linters

parent 245bd9b6
No related branches found
No related tags found
1 merge request!1Service skeleton with health check endpoints
Pipeline #49671 passed with stage
in 29 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
# task
# Task Service
Task service for executing tasks from policies.
\ No newline at end of file
Task service for executing tasks from policies.
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