From b5d5f80b7de8dd1045ad47e331355b72ef9e96d3 Mon Sep 17 00:00:00 2001 From: idanoo Date: Tue, 13 Sep 2022 19:41:55 +1200 Subject: [PATCH] Add linting --- .woodpecker/.build.yml | 1 - .woodpecker/.lint.yml | 4 +++- .woodpecker/.test.yml | 8 -------- 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 .woodpecker/.test.yml diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 8fbbd3c..8238ac6 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -6,4 +6,3 @@ pipeline: depends_on: - lint - - test \ No newline at end of file diff --git a/.woodpecker/.lint.yml b/.woodpecker/.lint.yml index 082a929..872c671 100644 --- a/.woodpecker/.lint.yml +++ b/.woodpecker/.lint.yml @@ -2,4 +2,6 @@ pipeline: lint: image: golang:1.19.1 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 diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml deleted file mode 100644 index 447edc3..0000000 --- a/.woodpecker/.test.yml +++ /dev/null @@ -1,8 +0,0 @@ -pipeline: - tests: - image: golang:1.19.1 - commands: - - go mod tidy - -depends_on: - - lint \ No newline at end of file