Bump golangci/golangci-lint-action from 3 to 4 #488
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Building and testing against different environments | |
on: | |
push: | |
branches: | |
tags: | |
pull_request: | |
env: | |
CGO_ENABLED: '0' # https://github.com/golang/go/issues/26988 | |
GO111MODULE: 'on' | |
jobs: | |
build: | |
name: Build on ${{ matrix.os }} for golang ${{ matrix.go }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
go: ['1.13.x', '1.14.x', '1.15.x', '1.16.x', '1.17.x'] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
- name: Build | |
run: go build -v . | |
- name: Test | |
run: | | |
go test -v ./... |