Skip to content

Commit a23ed92

Browse files
committed
feat : lint add
1 parent 2f717f1 commit a23ed92

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/go-lint.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ permissions:
99
contents: read
1010
jobs:
1111
golangci:
12-
name: lint
12+
name: Lint
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/setup-go@v3
16-
with:
17-
go-version: ^1.19
1815
- uses: actions/checkout@v3
16+
- name: Read Go version
17+
run: echo "GO_VERSION=$(cat ./.go-version)" >> $GITHUB_ENV
18+
- uses: actions/setup-go@v4
19+
with:
20+
go-version: ${{ env.GO_VERSION }}
1921
- name: golangci-lint
20-
run: cd server
2122
uses: golangci/golangci-lint-action@v3
2223
with:
23-
version: latest
24+
version: latest
25+
args: '--timeout 3m0s'

server/.go-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.19

0 commit comments

Comments
 (0)