chore(ci): set memory limits for CI jobs
All checks were successful
concourse-ci/lint/golangci-lint Lint Go files
concourse-ci/test/gotestsum Run unit tests

This commit is contained in:
Peter 2023-01-31 21:18:59 +01:00
parent ec31dd14d4
commit e643e7424b
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
3 changed files with 31 additions and 1 deletions

View file

@ -14,7 +14,7 @@ resources:
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
jobs:
- name: lint
- name: validate
plan:
- get: gapr.git
trigger: true
@ -40,3 +40,25 @@ jobs:
context: concourse-ci/lint/golangci-lint
description: Lint Go files
state: failure
- task: test
file: gapr.git/.concourse/tasks/test.yml
privileged: true
input_mapping: {repo: gapr.git}
on_success:
task: report-success
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: gapr.git}
vars:
project_path: prskr/gapr
context: concourse-ci/test/gotestsum
description: Run unit tests
state: success
on_failure:
task: report-failure
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: gapr.git}
vars:
project_path: prskr/gapr
context: concourse-ci/test/gotestsum
description: Run unit tests
state: failure

View file

@ -14,8 +14,12 @@ inputs:
params:
GO111MODULE: "on"
CGO_ENABLED: "0"
GOMEMLIMIT: "1150MiB"
GITEA_TOKEN: ((gitea-credentials.token))
container_limits:
memory: 1258291200 # 1200MB
run:
path: bash
args:

View file

@ -14,8 +14,12 @@ inputs:
params:
GO111MODULE: "on"
CGO_ENABLED: "1"
GOMEMLIMIT: "1150MiB"
GITEA_TOKEN: ((gitea-credentials.token))
container_limits:
memory: 1258291200 # 1200MB
run:
path: bash
args: