From d7af081fd40ff8a974bfc82897491eba1f0ea4ce Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 14 Jun 2024 10:41:12 +0200 Subject: [PATCH] Fix Golangci-lint errors (#1361) * Change to create PR * Maybe fixed problem * Changed golangci action version and changed output format of golangci * Fixed error * Added npm install so golangci finds node_modules folder * Another fix for the bug * Fixed bug * Added npm installation * Fixed bug * Trigger tests * Fixed bugs * Fixed a npm bug --- .github/workflows/golangci-lint.yml | 8 ++++++-- .golangci.yml | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 07b5e5e60..68b1aeaad 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -15,10 +15,14 @@ jobs: steps: - uses: actions/setup-go@v4 with: - go-version: 1.21 + go-version: 1.22 - uses: actions/checkout@v3 + - name: Install modules + working-directory: ./web + run: npm ci - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: latest only-new-issues: true + diff --git a/.golangci.yml b/.golangci.yml index 37693758f..54830d7f8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -89,3 +89,7 @@ issues: - gosec - unparam - staticcheck + +output: + formats: + - format: colored-line-number \ No newline at end of file