update automated testing
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Dan Ballard 2024-03-09 13:51:16 -08:00
parent ae0aa7a5b5
commit 4fc3121d23
3 changed files with 9 additions and 6 deletions

View File

@ -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

2
go.mod
View File

@ -1,6 +1,6 @@
module git.openprivacy.ca/cwtch.im/server
go 1.14
go 1.20
require (
cwtch.im/cwtch v0.18.0

View File

@ -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 .