28 lines
465 B
YAML
28 lines
465 B
YAML
---
|
|
platform: linux
|
|
|
|
image_resource:
|
|
type: registry-image
|
|
source:
|
|
repository: docker.io/golang
|
|
tag: 1.20-buster
|
|
|
|
inputs:
|
|
- name: repo
|
|
path: .
|
|
|
|
params:
|
|
GO111MODULE: "on"
|
|
CGO_ENABLED: "1"
|
|
GOMEMLIMIT: "1150MiB"
|
|
GITEA_TOKEN: ((gitea-credentials.token))
|
|
|
|
container_limits:
|
|
memory: 1258291200 # 1200MB
|
|
|
|
run:
|
|
path: bash
|
|
args:
|
|
- -ce
|
|
- |
|
|
go run gotest.tools/gotestsum@latest -f pkgname-and-test-fails -- -race -shuffle=on ./...
|