diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b22ba93b..52bab6aa9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,5 @@ name: build -on: [ push, pull_request ] +on: [ push, pull_request, workflow_dispatch ] jobs: golangci: @@ -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 @@ -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 @@ -99,4 +99,3 @@ jobs: path: build/logs/ if-no-files-found: warn retention-days: 5 -