Skip to content

lint: disable gocyclo for main #6

lint: disable gocyclo for main

lint: disable gocyclo for main #6

Workflow file for this run

name: Test
on:
push:
branches:
- master
paths-ignore:
- '**.md'
- 'LICENSE'
- '.gitignore'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- 'LICENSE'
- '.gitignore'
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
go: ['1.25']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- run: go mod download
- run: go mod verify
- name: go vet
run: go vet ./...
- name: tests
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
- name: upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
file: ./coverage.out
flags: unittests
fail_ci_if_error: false
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
args: --timeout=5m
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Build
run: go build -v .
- name: Test install
run: go install .