]>
Commit | Line | Data |
---|---|---|
f8e4cd54 JH |
1 | name: golangci-lint |
2 | on: | |
3 | pull_request: | |
4 | types: [opened, reopened] | |
5 | ||
6 | permissions: | |
7 | contents: read | |
8 | # Optional: allow read access to pull request. Use with `only-new-issues` option. | |
9 | pull-requests: read | |
10 | # Optional: allow write access to checks to allow the action to annotate code in the PR. | |
11 | checks: write | |
12 | ||
13 | jobs: | |
14 | golangci: | |
15 | name: lint | |
16 | runs-on: ubuntu-latest | |
17 | steps: | |
18 | - uses: actions/checkout@v4 | |
19 | - uses: actions/setup-go@v5 | |
20 | with: | |
21 | go-version: stable | |
22 | - name: golangci-lint | |
23 | uses: golangci/golangci-lint-action@v6 | |
24 | with: | |
25 | version: v1.58 |