Skip to content

Commit

Permalink
Bump tool versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rliebz committed Mar 29, 2024
1 parent f69def8 commit 5e08a90
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/go.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Test

on:
push:
Expand All @@ -11,15 +11,16 @@ permissions:

jobs:
test:
name: Test
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
go-version:
- '1.19'
- '1.20'
- '1.21'
- '1.22'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -35,14 +36,15 @@ jobs:
run: go test -trimpath -v ./...

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
version: v1.57.2
15 changes: 8 additions & 7 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
issues:
max-same-issues: 0
exclude-use-default: 0
exclude-use-default: false
exclude:
- if-return
exclude-rules:
path: _test\.go
linters:
- dupl
- gosec
- path: _test\.go
linters:
- dupl
- gosec

linters:
enable:
Expand Down Expand Up @@ -60,7 +60,6 @@ linters-settings:
disabled-checks:
- paramTypeCombine
- ptrToRefParam
- sloppyTestFuncName

gofumpt:
module-path: github.com/rliebz/ghost
Expand All @@ -71,7 +70,9 @@ linters-settings:
- G307 # duplicate of errcheck

govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment

lll:
line-length: 100
Expand Down
2 changes: 1 addition & 1 deletion tusk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tasks:
usage: Run static analysis
description: |
Run golangci-lint using the project configuration.
run: go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3 run ./...
run: go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1 run ./...

test:
usage: Run unit tests
Expand Down

0 comments on commit 5e08a90

Please sign in to comment.