dcrd/.github/workflows/go.yml
jholdstock 067a6b5d5b build: Don't set GO111MODULE unnecessarily.
As of go 1.16, the GO111MODULE environment variable defaults to "on",
so it doesn't need to be set explicitly when building or testing.
2021-09-01 06:09:37 -05:00

24 lines
620 B
YAML

name: Build and Test
on: [push, pull_request]
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.16, 1.17]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- 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.42.0"
- name: Build
run: go build ./...
- name: Test
run: |
sh ./run_tests.sh