From 6ba1ace5d14a03503e6a9c2de80357cc7a18e1cd Mon Sep 17 00:00:00 2001 From: Calvin Lobo Date: Sat, 6 Jul 2024 20:11:19 -0600 Subject: [PATCH] update github lint action --- .github/workflows/golangci-lint.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index c0a7c80..7b5732b 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -1,7 +1,12 @@ name: golangci-lint # Controls when the action will run. Triggers the workflow on push or pull requests -on: [push, pull_request] +on: + push: + branches: + - main + - master + pull_request: permissions: contents: read jobs: @@ -9,9 +14,11 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: stable - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v6 with: - # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: latest + version: v1.59 \ No newline at end of file