Skip to content

Commit 9a4f037

Browse files
Add lint action
1 parent dc40f16 commit 9a4f037

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/lint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Gotext code check
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Set up Go Stable version
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: stable
18+
id: go
19+
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v4
22+
23+
- name: Run vet
24+
run: go vet ./...
25+
26+
- name: Run golint
27+
run: go get -u golang.org/x/lint/golint && go install golang.org/x/lint/golint && golint ./...
28+
29+
- name: Run golangci-lint
30+
uses: golangci/golangci-lint-action@v7
31+
with:
32+
version: v2.0
33+

0 commit comments

Comments
 (0)