Skip to content

Commit c3c8723

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). Only new issues will be included until the rest of the repository has been brought up to date with the new linting rules. [1]: https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#how-to-use
1 parent 6459a00 commit c3c8723

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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
29+
# Show only new issues until the entire repository
30+
# is compliant with the new linting rules.
31+
only-new-issues: true

0 commit comments

Comments
 (0)