You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
654 B
43 lines
654 B
2 years ago
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: golangci-lint
|
||
|
image: golangci/golangci-lint:v1.49
|
||
|
volumes:
|
||
|
- name: deps
|
||
|
path: /go/src/mod
|
||
|
commands:
|
||
|
- golangci-lint run --timeout 5m
|
||
|
|
||
|
- name: test
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: deps
|
||
|
path: /go/src/mod
|
||
|
commands:
|
||
|
- go test ./...
|
||
|
|
||
|
- name: scripts golangci-lint
|
||
|
image: golangci/golangci-lint:v1.49
|
||
|
volumes:
|
||
|
- name: deps
|
||
|
path: /go/src/mod
|
||
|
commands:
|
||
|
- cd scripts
|
||
|
- golangci-lint run --timeout 5m
|
||
|
|
||
|
- name: scripts test
|
||
|
image: golang
|
||
|
volumes:
|
||
|
- name: deps
|
||
|
path: /go/src/mod
|
||
|
commands:
|
||
|
- cd scripts
|
||
|
- go test ./...
|
||
|
|
||
|
volumes:
|
||
|
- name: deps
|
||
|
temp: {}
|
||
|
|