-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: replace on pull request paths with technote-space/get-diff-act…
…ion@v6
- Loading branch information
Showing
3 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,6 @@ name: Golang Linter | |
|
||
on: | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
- ".golangci.yml" | ||
- ".github/linters/*" | ||
push: | ||
branches: | ||
- master | ||
|
@@ -30,25 +26,32 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "^1.23.2" | ||
|
||
- uses: technote-space/get-diff-action@v6 | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
.github/linters/* | ||
FILES: | | ||
go.mod | ||
go.sum | ||
.golangci.yml | ||
- uses: actions/[email protected] | ||
if: env.GIT_DIFF | ||
with: | ||
go-version: "^1.23.2" | ||
|
||
- name: Install dependencies | ||
if: env.GIT_DIFF | ||
run: sudo apt-get update && sudo apt-get install -y libpcap-dev | ||
|
||
- uses: ./.github/actions/bls | ||
if: env.GIT_DIFF | ||
name: Install BLS library | ||
if: "env.GIT_DIFF != ''" | ||
|
||
- uses: golangci/[email protected] | ||
if: env.GIT_DIFF | ||
with: | ||
# Required: the version of golangci-lint is required and | ||
# must be specified without patch version: we always use the | ||
|
@@ -57,4 +60,3 @@ jobs: | |
args: --timeout 10m | ||
github-token: ${{ secrets.github_token }} | ||
only-new-issues: true | ||
if: env.GIT_DIFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters