Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, tip]
go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x, 1.24.x, tip]
full-tests: [false]
include:
- go-version: 1.21.x
- go-version: 1.25.x
full-tests: true

runs-on: ubuntu-latest
Expand All @@ -32,21 +32,8 @@ jobs:
if: matrix.full-tests
run: |
curl -sL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh |
sh -s -- -b $HOME/go/bin v1.54.1
$HOME/go/bin/golangci-lint run --max-issues-per-linter 0 \
--max-same-issues 0 \
-E bidichk \
-E exportloopref \
-E gocritic \
-E godot \
-E goimports \
-E maligned \
-E misspell \
-E prealloc \
-E revive \
-E unconvert \
-E whitespace \
./...
sh -s -- -b $HOME/go/bin v2.4.0
$HOME/go/bin/golangci-lint run

- name: Testing
continue-on-error: ${{ matrix.go-version == 'tip' }}
Expand All @@ -63,5 +50,5 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/mattn/goveralls@v0.0.11
go install github.com/mattn/goveralls@v0.0.12
goveralls -coverprofile=coverage.out -service=github
48 changes: 48 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: "2"
issues:
max-issues-per-linter: 0
max-same-issues: 0
run:
go: '1.16'
linters:
default: none
enable:
- asasalint
- asciicheck
- bidichk
- durationcheck
- errcheck
- gocritic
- godot
- govet
- importas
- ineffassign
- misspell
- prealloc
- revive
- staticcheck
- testableexamples
- unconvert
- unused
- wastedassign
- whitespace
settings:
revive:
rules:
- name: unused-parameter
disabled: true
exclusions:
rules:
- path: internal/dark/bypass.go
text: "const \\w+ is unused"
formatters:
enable:
- gci
- goimports
settings:
gci:
sections:
- standard
- default
- localmodule
custom-order: true