Upgraded linter and dependencies

This commit is contained in:
2019-09-11 09:04:32 +09:00
parent 27753f6f9e
commit 4b6a7bd791
3 changed files with 32 additions and 10 deletions

View File

@ -5,19 +5,21 @@ steps:
- name: test
image: golang
environment:
GO111MODULE: on
NVM_DIR: /root/.nvm
ARN_ROOT: /drone/src
commands:
- go version
- go mod download
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
- $NVM_DIR/nvm.sh
- nvm install node
- npm install -g typescript
- go mod download
- make tools
- make assets
- make server
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
- golangci-lint run
- make db
- go test -v -coverprofile=coverage.txt .
# - go mod download
# - make tools