37 lines
453 B
YAML
37 lines
453 B
YAML
image: golang:latest
|
|
|
|
before_script:
|
|
- make install-deps
|
|
|
|
stages:
|
|
- test
|
|
- build
|
|
|
|
format:
|
|
stage: test
|
|
script:
|
|
- make format
|
|
|
|
dependencies:
|
|
stage: test
|
|
script:
|
|
- make go-mod-tidy
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- make test
|
|
|
|
build:
|
|
stage: build
|
|
only:
|
|
- main
|
|
- tags
|
|
script:
|
|
- git fetch --tags
|
|
- make build/snapshot
|
|
artifacts:
|
|
paths:
|
|
- dist/*.tar.gz
|
|
- dist/checksums.txt
|
|
expire_in: 1 day
|