Skip to content

Commit 360e0aa

Browse files
lvan100lianghuan
authored andcommitted
Ci: Add golangci lit workflow
1 parent bdea4c7 commit 360e0aa

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run golangci-lint
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
name: Run golangci-lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Print All environment variables
18+
run: env | sort
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
23+
- name: Install golangci-lint
24+
uses: golangci/golangci-lint-action@v7
25+
with:
26+
version: latest
27+
28+
- name: Run golangci-lint
29+
run: golangci-lint run ./...
File renamed without changes.

0 commit comments

Comments
 (0)