Skip to content

Commit a669299

Browse files
committed
GitHub Actions workflow to run golangci-lint added
This workflow derives from the recommendation [1] to run a separate linting job in parallel with other jobs (i.e. tests). [1]: https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use
1 parent 6459a00 commit a669299

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
golangci:
15+
name: lint
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: actions/setup-go@v5
22+
with:
23+
go-version: stable
24+
25+
- name: golangci-lint
26+
uses: golangci/golangci-lint-action@v8
27+
with:
28+
version: v2.1

0 commit comments

Comments
 (0)