Skip to content

Commit 6446e4c

Browse files
authored
Ops/add lint ci (#1)
* Update module path Signed-off-by: Jatin <[email protected]> * ops: add CI gh-action workflow Signed-off-by: Jatin <[email protected]> * fix CI error Signed-off-by: Jatin <[email protected]> * check CI Signed-off-by: Jatin <[email protected]> * Approved CI Signed-off-by: Jatin <[email protected]> --------- Signed-off-by: Jatin <[email protected]>
1 parent f5a749d commit 6446e4c

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v4
19+
with:
20+
go-version: '1.23'
21+
22+
- name: Run golangci-lint
23+
uses: golangci/golangci-lint-action@v3
24+
with:
25+
version: v1.64
26+
args: --timeout=5m
27+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ go.work.sum
3030
# Editor/IDE
3131
# .idea/
3232
# .vscode/
33+
34+
gogit

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/bakayu/gogit.git
1+
module github.com/bakayu/gogit
22

33
go 1.23
44

0 commit comments

Comments
 (0)