Add golangci-lint for GUI

This commit is contained in:
Arjan H
2025-03-23 10:21:49 +01:00
parent 4339cdd0c3
commit 3ec866d1ea
8 changed files with 117 additions and 99 deletions

36
.github/workflows/golangci-lint.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: golangci-lint
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
GO_VERSION:
- 1.24.1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.64
working-directory: ./gui