22 lines
522 B
YAML
22 lines
522 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: pipeline
|
|
|
|
steps:
|
|
- name: simple tests
|
|
image: golang:1.23.10
|
|
commands:
|
|
- go test ./...
|
|
- name: race tests
|
|
image: golang:1.23.10
|
|
commands:
|
|
- go test -race -count 100 -timeout 30s ./...
|
|
- name: benchmark
|
|
image: golang:1.23.10
|
|
commands:
|
|
- go test -benchtime=10x -benchmem -bench=Benchmark ./... | grep allocs || true
|
|
- name: lint
|
|
image: golangci/golangci-lint:v1.61.0
|
|
commands:
|
|
- golangci-lint run --config=./golangci.yml ./...
|