Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: workflow for running golangci-lint #4

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: GolangCI-Lint
on:
pull_request:
push:
branches:
- "master"

jobs:
lint:
name: GolangCI-Lint
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- uses: golangci/golangci-lint-action@v3
with:
# https://github.com/golangci/golangci-lint/releases/tag/v1.55.2
version: v1.55.2
25 changes: 25 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
issues:
exclude-use-default: false

linters:
enable-all: true
disable:
# Linters that are deprecated.
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck

linters-settings:
goheader:
template: |-
Copyright Josh Komoroske. All rights reserved.
Use of this source code is governed by the MIT license,
a copy of which can be found in the LICENSE.txt file.
SPDX-License-Identifier: MIT
Loading