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