mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
chore(ci): goheader linting only runs in CI on changed or new files (#100)
This commit is contained in:
parent
9e452f2960
commit
efa14ab5d0
3 changed files with 6 additions and 2 deletions
5
.github/workflows/golangci-lint.yml
vendored
5
.github/workflows/golangci-lint.yml
vendored
|
|
@ -8,7 +8,10 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
# Required: allow read access to the content for analysis.
|
||||
contents: read
|
||||
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
golangci:
|
||||
|
|
@ -23,3 +26,5 @@ jobs:
|
|||
uses: golangci/golangci-lint-action@v6
|
||||
with:
|
||||
version: v1.60
|
||||
only-new-issues: true
|
||||
args: --enable goheader
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ linters:
|
|||
- gci
|
||||
- gocheckcompilerdirectives
|
||||
- gofmt
|
||||
- goheader
|
||||
- goimports
|
||||
- gomodguard
|
||||
- gosec
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Copyright {{ MOD-YEAR }} the libevm authors.
|
||||
Copyright {{ MOD-YEAR-RANGE }} the libevm authors.
|
||||
|
||||
The libevm additions to go-ethereum are free software: you can redistribute
|
||||
them and/or modify them under the terms of the GNU Lesser General Public License
|
||||
|
|
|
|||
Loading…
Reference in a new issue