Skip to content

Commit 7ca5459

Browse files
dklimpelaelsabbahy
andauthored
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]>
1 parent 784c3c2 commit 7ca5459

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ updates:
1313
- "aelsabbahy"
1414
open-pull-requests-limit: 0
1515

16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: "weekly"
20+
day: "saturday"
21+
1622
- package-ecosystem: "pip"
1723
directory: "/docs"
1824
schedule:
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Golang ci
2+
on:
3+
# don't build any branch other than master (and prs) when git pushed
4+
pull_request: {}
5+
push:
6+
branches:
7+
- master
8+
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
9+
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
14+
jobs:
15+
golangci:
16+
name: lint
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-go@v5
21+
with:
22+
go-version-file: go.mod
23+
- name: golangci-lint
24+
uses: golangci/golangci-lint-action@v6
25+
with:
26+
version: latest
27+
only-new-issues: true

0 commit comments

Comments
 (0)