From 3fe1b4fc4e686c817bbdd30a53c8ef4032fe4dc5 Mon Sep 17 00:00:00 2001 From: Roland Lammel Date: Tue, 18 Jul 2023 00:20:58 +0200 Subject: [PATCH] ci: revert to classic golangci-lint action --- .github/workflows/lint.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 800caea..c9d1936 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,17 +1,20 @@ -name: Code analysis +name: Code Analysis -on: [pull_request] +on: [ push, pull_request ] jobs: - golangci-lint: + lint: + if: "!contains(github.event.head_commit.message, 'autoupdate')" runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 with: - fetch-depth: 0 - - name: Linting with golangci-lint - uses: reviewdog/action-golangci-lint@v2 + go-version: 'stable' + + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 with: - github_token: ${{ secrets.ACCESS_TOKEN }} - reporter: github-pr-review + version: latest