From 8d16df9979c31e7974d0a09f7490e09417db8dbe Mon Sep 17 00:00:00 2001 From: Tim <11543666+tbckr@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:13:33 +0200 Subject: [PATCH 1/2] chore(task): add lint task --- Taskfile.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 72ebd5b1..48a7022f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -144,6 +144,11 @@ tasks: cmds: - gofumpt -w -l . + lint: + desc: Lint the code + cmds: + - task: lint:go + lint:go: desc: Lint the code with golangci-lint cmds: From 6f7c9a8c57905e6e5ef1045810ff93d0c415f5d1 Mon Sep 17 00:00:00 2001 From: Tim <11543666+tbckr@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:15:23 +0200 Subject: [PATCH 2/2] feat: activate golangci-lint in pipeline --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3938b21..26539a36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,8 +115,10 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3 with: - args: --timeout=5m --print-issued-lines --print-linter-name -c .golangci.yaml --out-format=github-actions --issues-exit-code=0 + args: --timeout=5m --print-issued-lines --print-linter-name -c .golangci.yaml --out-format=github-actions install-mode: "goinstall" + skip-cache: true + only-new-issues: true vuln_check: runs-on: ubuntu-latest