This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-04 08:04:31 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: test
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2023-02-08 05:08:22 +00:00
|
|
|
image: golang:1.20
|
2022-09-04 08:04:31 +00:00
|
|
|
commands:
|
|
|
|
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: check-go-mod
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: check go.mod
|
2023-02-08 05:08:22 +00:00
|
|
|
image: golang:1.20
|
2022-09-04 08:04:31 +00:00
|
|
|
commands:
|
|
|
|
- go mod tidy
|
|
|
|
- git diff --exit-code go.mod
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: golangci-lint
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: run golangci-lint
|
2023-02-08 04:38:39 +00:00
|
|
|
image: golangci/golangci-lint:v1.51
|
2022-09-04 08:04:31 +00:00
|
|
|
commands:
|
|
|
|
- golangci-lint run
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
branch:
|
|
|
|
- master
|