Skip to content

fix issue1690

fix issue1690 #1987

Workflow file for this run

name: CI (no build)
on:
pull_request:
branches:
- 'main*'
- 'release*'
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
# Should be consistent with go.mod
go-version: '1.16'
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.43.0
# If set to true then the action will use pre-installed Go
skip-go-installation: true
# Optional: golangci-lint command line arguments.
# The config file has lower priority than command-line options.
args: --config=.golangci.yml
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
# Should be consistent with go.mod
go-version: '1.16'
- name: Unit test
run: make test