gapr/.concourse/tasks/test.yml
Peter Kurfer e643e7424b
All checks were successful
concourse-ci/lint/golangci-lint Lint Go files
concourse-ci/test/gotestsum Run unit tests
chore(ci): set memory limits for CI jobs
2023-01-31 21:23:09 +01:00

28 lines
465 B
YAML

---
platform: linux
image_resource:
type: registry-image
source:
repository: docker.io/golang
tag: 1.19-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 ./...