2023-01-01 12:42:36 +00:00
|
|
|
---
|
|
|
|
platform: linux
|
|
|
|
|
|
|
|
image_resource:
|
|
|
|
type: registry-image
|
|
|
|
source:
|
2023-01-01 12:50:40 +00:00
|
|
|
repository: docker.io/golang
|
|
|
|
tag: 1.19-buster
|
2023-01-01 12:42:36 +00:00
|
|
|
|
|
|
|
inputs:
|
|
|
|
- name: repo
|
|
|
|
path: .
|
|
|
|
|
|
|
|
params:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
CGO_ENABLED: "1"
|
|
|
|
GITEA_TOKEN: ((gitea-credentials.token))
|
|
|
|
|
|
|
|
run:
|
|
|
|
path: bash
|
|
|
|
args:
|
|
|
|
- -ce
|
|
|
|
- |
|
|
|
|
go install gotest.tools/gotestsum@latest
|
2023-01-01 12:53:55 +00:00
|
|
|
curl -L https://github.com/go-task/task/releases/latest/download/task_linux_amd64.tar.gz | tar -xvz -C /usr/local/bin task
|
|
|
|
task test
|