mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 02:10:46 +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:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
# Required: allow read access to the content for analysis.
|
||||||
contents: read
|
contents: read
|
||||||
|
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
||||||
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
golangci:
|
||||||
|
|
@ -23,3 +26,5 @@ jobs:
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
version: v1.60
|
version: v1.60
|
||||||
|
only-new-issues: true
|
||||||
|
args: --enable goheader
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ linters:
|
||||||
- gci
|
- gci
|
||||||
- gocheckcompilerdirectives
|
- gocheckcompilerdirectives
|
||||||
- gofmt
|
- gofmt
|
||||||
- goheader
|
|
||||||
- goimports
|
- goimports
|
||||||
- gomodguard
|
- gomodguard
|
||||||
- gosec
|
- 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
|
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
|
them and/or modify them under the terms of the GNU Lesser General Public License
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue