Skip to content

Commit

Permalink
Bump golangci/golangci-lint-action from v2 to v3
Browse files Browse the repository at this point in the history
Bumps golangci/golangci-lint-action from v2 to v3.
  • Loading branch information
nickeskov committed Feb 8, 2024
1 parent ef468ed commit cd84e14
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: build
on: [ push, pull_request ]
on: [ push, pull_request, workflow_dispatch ]

jobs:
golangci:
Expand All @@ -24,13 +24,13 @@ jobs:
- name: Get dependencies
run: go mod vendor
- name: golangci-lint-soft
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: -c .golangci.yml
# Strict linter configuration, only checking new code from pull requests.
- name: golangci-lint-strict
run: golangci-lint run -c .golangci-strict.yml --new-from-rev=origin/master --out-format=github-actions
run: golangci-lint run -c .golangci-strict.yml --new-from-rev=origin/master --out-format=github-actions,line-number

build:
name: ubuntu
Expand All @@ -46,7 +46,7 @@ jobs:
cache: true

- name: Set up GolangCI-Lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $HOME/bin v1.53.3
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $HOME/bin v1.56.1

- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down Expand Up @@ -99,4 +99,3 @@ jobs:
path: build/logs/
if-no-files-found: warn
retention-days: 5

0 comments on commit cd84e14

Please sign in to comment.