From 498fb1fe4deefdd7233d34983d37d767523c89d2 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Tue, 4 Jan 2022 08:22:41 +0100 Subject: [PATCH] fixup! WIP: Go 1.18 --- .drone.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 84566b8..8f0b2a6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,8 +4,8 @@ type: docker name: default steps: -- name: backend - image: golang:1.18beta1 +- name: backend-go1.17 + image: golang:1.17 commands: - cd backend/ - go install honnef.co/go/tools/cmd/staticcheck@latest @@ -14,10 +14,22 @@ steps: - staticcheck ./... - go test -bench=. -benchmem -cover ./... +# staticcheck does not yet support Go 1.18. +# https://github.com/dominikh/go-tools/issues/1145#issuecomment-995190461 +- name: backend-go1.18 + image: golang:1.18beta1 + commands: + - cd backend/ + # - go install honnef.co/go/tools/cmd/staticcheck@latest + - go build ./... + - go vet ./... + # - staticcheck ./... + - go test -bench=. -benchmem -cover ./... + - name: frontend image: node:14 commands: - cd frontend - yarn - yarn build - - yarn test \ No newline at end of file + - yarn test