From c98b5b6a3fe754a66d5a1bbd0ea80baaf853305f Mon Sep 17 00:00:00 2001 From: facchettos Date: Fri, 9 Feb 2024 14:13:03 +0100 Subject: [PATCH 1/2] now only report linting errors on files that we modify --- .github/workflows/lint.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ae61b7ffa..59a48bfac 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,15 +18,19 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version: "1.21" cache: false - - uses: actions/checkout@v4 - name: Generate Embedded Helm Charts run: | go generate ./... - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 with: - args: -v --config=.golangci.yml + args: -v --config=.golangci.yml --whole-files + only-new-issues: true From dd6ddf5e036d269db4760f455f34082486a2a976 Mon Sep 17 00:00:00 2001 From: facchettos Date: Mon, 12 Feb 2024 16:49:47 +0100 Subject: [PATCH 2/2] added extra trigger --- .github/workflows/lint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 59a48bfac..2bed5bb62 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -8,6 +8,7 @@ on: - main paths: - "**.go" + - ".github/workflows/lint.yaml" concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}