* Use features from Go 1.16 tooling. - GO111MODULE environment variable now defaults to "on" - "go build" and "go test" now exit with an error rather than silently modifying go.mod or go.sum files - Update README.md * Don't use deprecated ioutil package.
24 lines
617 B
YAML
24 lines
617 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: |
|
|
./run_tests.sh
|