From 15bccc3c42ba28c65a2ce529da96a003cc12200e Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 23 Sep 2021 09:39:25 +0200 Subject: [PATCH] Create .cirrus.yml --- .cirrus.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..7a384ce --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,23 @@ +container: + image: golang:latest + +env: + GOPROXY: https://proxy.golang.org + +lint_task: + name: GolangCI Lint + container: + image: golangci/golangci-lint:latest + run_script: golangci-lint run -v --timeout 5m0s --out-format json > lint-report.json + always: + golangci_artifacts: + path: lint-report.json + type: text/json + format: golangci + +build_task: + modules_cache: + folder: $GOPATH/pkg/mod + get_script: go get github.com/wneessen/apg-go/cmd/apg + build_script: go build github.com/wneessen/apg-go/cmd/apg + test_script: go test github.com/wneessen/apg-go/cmd/apg