From 6b3d5ede7d9ee8535ba23f6fe3b63502da6039f4 Mon Sep 17 00:00:00 2001 From: Braden Hilton Date: Fri, 17 May 2024 11:55:21 +0100 Subject: [PATCH] chore: update GitHub Actions --- .github/workflows/main.yml | 12 ++++++------ .golangci.yml | 11 +++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4e248d..ea0a4e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,17 +10,17 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 - run: go test ./... lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b - - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 - - uses: golangci/golangci-lint-action@9d1e0624a798bb64f6c3cea93db47765312263dc + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + - uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 + - uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 with: - version: v1.55.2 + version: v1.58.1 - uses: DavidAnson/markdownlint-cli2-action@b4c9feab76d8025d1e83c653fa3990936df0e6c8 with: globs: '**/*.md' diff --git a/.golangci.yml b/.golangci.yml index 8783805..9d6ccad 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,11 +11,11 @@ linters: - dupl - dupword - durationcheck + - err113 - errcheck - errchkjson - errname - errorlint - - execinquery - exhaustive - exportloopref - forbidigo @@ -30,7 +30,6 @@ linters: - gocritic - gocyclo - godot - - goerr113 - gofmt - gofumpt - goheader @@ -130,14 +129,14 @@ issues: - linters: - dupl - scopelint - path: "_test\\.go" + path: _test\.go - linters: - forbidigo - gosec - path: "internal/" + path: internal/ - linters: - - goerr113 + - err113 text: do not define dynamic errors, use wrapped static errors instead - linters: - gochecknoinits - path: "docs/docs.go" + path: docs\.go