Skip to content

Commit

Permalink
Fix Golangci-lint errors (#1361)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
SebiWrn authored Jun 14, 2024
1 parent eace094 commit d7af081
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ issues:
- gosec
- unparam
- staticcheck

output:
formats:
- format: colored-line-number

0 comments on commit d7af081

Please sign in to comment.