-
Gabriel Zachmann authoredGabriel Zachmann authored
.gitlab-ci.yml 2.02 KiB
include:
- 'https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/-/raw/master/ci-include/github-status-sync.yml'
variables:
UPSTREAM_PROJECT: oidc-mytoken/server
image: golang:1.19
stages:
- build
- test
- lint
- release
- deploy
default:
tags:
- linux
cache:
paths:
- .cache
before_script:
- mkdir -p .cache
- export GOPATH=${CI_PROJECT_DIR}/.cache
test:
stage: test
script:
- go test -v ./...
test_race:
stage: test
script:
- go test -race -v ./...
staticcheck:
stage: lint
before_script:
- go install honnef.co/go/tools/cmd/staticcheck@latest
script:
- staticcheck ./...
vet:
stage: lint
script:
- go vet ./...
build_server:
stage: build
script:
- go build github.com/oidc-mytoken/server/cmd/mytoken-server
build_setup:
stage: build
script:
- go build github.com/oidc-mytoken/server/cmd/mytoken-server/mytoken-setup
build_migratedb:
stage: build
script:
- go build github.com/oidc-mytoken/server/cmd/mytoken-server/mytoken-migratedb
prerelease:
stage: release
image:
name: goreleaser/goreleaser
entrypoint: [ "" ]
services:
- docker:dind