Skip to content

Commit

Permalink
build: Test against Go 1.16 (decred#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored Apr 8, 2021
1 parent 550c934 commit e061851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.14, 1.15]
go: [1.15, 1.16]
steps:
- name: Set up Go
uses: actions/setup-go@v2
Expand All @@ -15,14 +15,12 @@ jobs:
- name: Check out source
uses: actions/checkout@v2
- name: Install Linters
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0"
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0"
- name: Build
env:
GO111MODULE: "on"
run: go build ./...
- name: Test
env:
GO111MODULE: "on"
run: |
export PATH=${PATH}:$(go env GOPATH)/bin
golangci-lint run --disable-all --deadline=10m --enable=gofmt --enable=golint --enable=vet --enable=gosimple --enable=unconvert
run: golangci-lint run --disable-all --deadline=10m --enable=gofmt --enable=golint --enable=vet --enable=gosimple --enable=unconvert
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# build
FROM golang:1.15-alpine AS builder
FROM golang:1.16-alpine AS builder

WORKDIR $GOPATH/src/github.com/decred/dcrwebapi
COPY . .
Expand Down

0 comments on commit e061851

Please sign in to comment.