Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cache
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
cache
Commits
0f954f26
Commit
0f954f26
authored
3 years ago
by
Yordan Kinkov
Browse files
Options
Downloads
Patches
Plain Diff
#1
add Gitlab CI pipelines
parent
f0bdb11f
No related branches found
No related tags found
1 merge request
!1
Service skeleton with health check endpoints
Pipeline
#49697
failed with stage
in 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+25
-0
25 additions, 0 deletions
.gitlab-ci.yml
.golangci.yml
+31
-0
31 additions, 0 deletions
.golangci.yml
with
56 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
25
−
0
View file @
0f954f26
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
This diff is collapsed.
Click to expand it.
.golangci.yml
0 → 100644
+
31
−
0
View file @
0f954f26
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment