-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github golang lint CI pipeline (#899)
* Add github golang lint CI pipeline * add dependabot config * use go version from go.mod * run linter on linux only * restrict pipeline permissions --------- Co-authored-by: Ahmed Elsabbahy <[email protected]>
- Loading branch information
1 parent
784c3c2
commit 7ca5459
Showing
2 changed files
with
33 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Golang ci | ||
on: | ||
# don't build any branch other than master (and prs) when git pushed | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/" | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: latest | ||
only-new-issues: true |