Skip to content

ci: add golangci linter rules #156

ci: add golangci linter rules

ci: add golangci linter rules #156

Workflow file for this run

name: go
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: "v1.60"
test:
strategy:
matrix:
go: [stable]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run tests and generate coverage data
run: |
make test-go-coverage
env:
GO111MODULE: "auto"
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}