Skip to content

Commit 10fdd72

Browse files
author
Rick Rackow
authored
feat(actions): add linter action (#4)
* feat(actions): add linter action * chore(actions): adjust linter action to use go mod go version * chore(actions): run linter on ubuntu-latest We can safely assume that the linter's behaviour doesn't change on different operating systems
1 parent 086b411 commit 10fdd72

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/go-lint.yml

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

0 commit comments

Comments
 (0)