Skip to content

fix: disabled with nil #37

fix: disabled with nil

fix: disabled with nil #37

Workflow file for this run

name: Go
on:
push:
pull_request:
branches: [ develop, master ]
env:
LATEST_GO_VERSION: "1.16"
GO111MODULE: "on"
jobs:
test:
name: Test on go ${{ matrix.go_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: ['1.16']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go_version }}
- name: "Fetch dependencies"
run: go mod download
# Only run gofmt, vet & lint against the latest Go version
- name: "Run golint"
if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}}
run: |
go install golang.org/x/lint/golint@latest
golint -set_exit_status $1 ./...
exit $1
- name: "Run gofmt"
if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}}
run: diff -u <(echo -n) <(gofmt -d -e .)
- name: "Run go vet"
if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}}
run: go vet -v ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...