Skip to content

Bump golangci/golangci-lint-action from 3 to 4 #489

Bump golangci/golangci-lint-action from 3 to 4

Bump golangci/golangci-lint-action from 3 to 4 #489

Workflow file for this run

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 ./...