Skip to content

[NOREF] update linting to golangci #1595

[NOREF] update linting to golangci

[NOREF] update linting to golangci #1595

Workflow file for this run

name: Go
on: [push]
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Environment information
run: |
uname -a
go version
go env
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
skip-build-cache: true
skip-pkg-cache: true
- name: Test
run: go test -count=1 ./...
- name: Test with -race
run: go test -race -count=1 ./...