diff --git a/.drone.yml b/.drone.yml index 6f2f5f0..1414157 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,20 +5,20 @@ name: linux-test steps: - name: fetch - image: golang:1.17.5 + image: golang:1.21.5 volumes: - name: deps path: /go commands: - #- go get -u golang.org/x/lint/golint - go install honnef.co/go/tools/cmd/staticcheck@latest + - go install go.uber.org/nilaway/cmd/nilaway@latest - git fetch --tags - go get - echo `git describe --tags` > VERSION - echo `date +%G-%m-%d-%H-%M` > BUILDDATE - name: quality - image: golang:1.17.5 + image: golang:1.21.5 volumes: - name: deps path: /go @@ -27,7 +27,7 @@ steps: - staticcheck ./... - name: units-tests - image: golang:1.17.5 + image: golang:1.21.5 volumes: - name: deps path: /go @@ -35,7 +35,7 @@ steps: - sh testing/tests.sh - name: test-builda-app - image: golang:1.17.5 + image: golang:1.21.5 volumes: - name: deps path: /go diff --git a/go.mod b/go.mod index ce1e4c8..2a63d78 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module git.openprivacy.ca/cwtch.im/server -go 1.14 +go 1.20 require ( cwtch.im/cwtch v0.18.0 diff --git a/testing/quality.sh b/testing/quality.sh index 7e2a613..fac7b3f 100755 --- a/testing/quality.sh +++ b/testing/quality.sh @@ -11,6 +11,9 @@ echo "Linting:" staticcheck ./... +echo "Running nilaway..." +nilaway -include-pkgs="cwtch.im/cwtch,cwtch.im/tapir,git.openprivacy.ca/openprivacy/connectivity" -exclude-file-docstrings="nolint:nilaway" ./... + echo "Time to format" gofmt -l -s -w .