Skip to content

Commit bde6c6c

Browse files
committed
Added Lint action to improve code quality
1 parent 1a78acf commit bde6c6c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Lint"
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '*.md'
7+
8+
pull_request:
9+
types: [ opened, synchronize ]
10+
paths-ignore:
11+
- '*.md'
12+
branches:
13+
- master
14+
15+
jobs:
16+
lint:
17+
name: "Run linter"
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Go
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version: "1.16"
28+
29+
- name: golangci-lint
30+
uses: golangci/golangci-lint-action@v6
31+
with:
32+
version: latest

0 commit comments

Comments
 (0)