chore(ci): goheader linting only runs in CI on changed or new files (#100)

This commit is contained in:
Quentin McGaw 2025-01-08 09:38:50 +01:00 committed by GitHub
parent 9e452f2960
commit efa14ab5d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -16,7 +16,6 @@ linters:
- gci - gci
- gocheckcompilerdirectives - gocheckcompilerdirectives
- gofmt - gofmt
- goheader
- goimports - goimports
- gomodguard - gomodguard
- gosec - gosec

View file

@ -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