Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hizla
waitlist
backend
Commits
f84f67b0
Commit
f84f67b0
authored
10 months ago
by
Levatax
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
31f25bae
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+47
-0
47 additions, 0 deletions
.gitlab-ci.yml
with
47 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
47
−
0
View file @
f84f67b0
stages
:
-
lint
-
test
-
build
variables
:
GO_VERSION
:
"
1.23.2"
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
-
go.sum
-
go.mod
-
.cache/go-build
-
${GOPATH}/pkg/mod
before_script
:
-
export GOPATH="$CI_PROJECT_DIR/go"
-
export PATH="$GOPATH/bin:$PATH"
-
mkdir -p ${GOPATH}/bin
lint
:
stage
:
lint
image
:
golangci/golangci-lint:latest
script
:
-
golangci-lint run
allow_failure
:
false
test
:
stage
:
test
image
:
golang:${GO_VERSION}
services
:
-
redis:latest
# Optional: In case you use redis
script
:
-
go test ./... -v
allow_failure
:
false
coverage
:
'
/^coverage:.*\s(\d+\.\d+)%/'
build
:
stage
:
build
image
:
golang:${GO_VERSION}
script
:
-
go build -o waitlist-api
artifacts
:
paths
:
-
waitlist-api
expire_in
:
1 week
\ No newline at end of file
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