File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : golangci-lint
2+ on :
3+ push :
4+ branches : [ main ]
5+ pull_request :
6+ branches : [ main ]
7+
8+ permissions :
9+ # Required: allow read access to the content for analysis.
10+ contents : read
11+ # Optional: allow read access to pull request. Use with `only-new-issues` option.
12+ pull-requests : read
13+ # Optional: allow write access to checks to allow the action to annotate code in the PR.
14+ checks : write
15+
16+ jobs :
17+ golangci :
18+ # strategy:
19+ # matrix:
20+ # go: [stable]
21+ # os: [ubuntu-latest, macos-latest]
22+ name : lint
23+ # runs-on: ${{ matrix.os }}
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v4
27+ - uses : actions/setup-go@v5
28+ with :
29+ go-version : ${{ matrix.go }}
30+ - name : golangci-lint
31+ uses : golangci/golangci-lint-action@v6
32+ with :
33+ version : v1.60
You can’t perform that action at this time.
0 commit comments