From 5cc2477657c15c95218cfd6fda63d434549a2e11 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 21 Sep 2021 11:24:09 +0200 Subject: [PATCH] Added Cirrus CI --- .cirrus.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..dcd23e6 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,24 @@ +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: + fingerprint_script: cat go.sum + folder: $GOPATH/pkg/mod + get_script: go get github.com/wneessen/go-hibp + build_script: go build github.com/wneessen/go-hibp + test_script: go test github.com/wneessen/go-hibp \ No newline at end of file