Skip to content

Commit c6916a8

Browse files
committed
[CI] introduce minimal CI
1 parent ead1fe2 commit c6916a8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.gitlab-ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Taken from https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Go.gitlab-ci.yml
2+
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
3+
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
4+
#
5+
# To contribute improvements to CI/CD templates, please follow the Development guide at:
6+
# https://docs.gitlab.com/ee/development/cicd/templates.html
7+
# This specific template is located at:
8+
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Go.gitlab-ci.yml
9+
10+
image: golang:1.22.1 # fix image to prevent future installation breaks
11+
12+
stages:
13+
- test
14+
- build
15+
16+
tests:
17+
stage: test
18+
script:
19+
- go vet $(go list ./... | grep -v /vendor/)
20+
- go test -race $(go list ./... | grep -v /vendor/)
21+
22+
compile:
23+
stage: build
24+
script:
25+
- go build main.go
26+
artifacts:
27+
paths:
28+
- main.go

0 commit comments

Comments
 (0)