Skip to content

Fix issue1532 1

Fix issue1532 1 #2899

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.19.6'
- 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.45.2
# 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.19.6'
- name: Unit test
run: make test