Add linting

This commit is contained in:
idanoo 2022-09-13 19:41:55 +12:00
parent 2607b23dcd
commit b5d5f80b7d
Signed by: idanoo
GPG Key ID: 387387CDBC02F132
3 changed files with 3 additions and 10 deletions

View File

@ -6,4 +6,3 @@ pipeline:
depends_on: depends_on:
- lint - lint
- test

View File

@ -2,4 +2,6 @@ pipeline:
lint: lint:
image: golang:1.19.1 image: golang:1.19.1
commands: commands:
- go mod tidy - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.49.0
- golangci-lint --version
- golangci-lint run

View File

@ -1,8 +0,0 @@
pipeline:
tests:
image: golang:1.19.1
commands:
- go mod tidy
depends_on:
- lint