Skip to content

Commit 3012247

Browse files
committed
Update workflow.
1 parent 1e15b83 commit 3012247

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/golangci-lint.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
name: golangci-lint
2-
on: [ push, pull_request ]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
permissions:
8+
contents: read
39
jobs:
410
golangci:
511
name: lint
612
runs-on: ubuntu-latest
7-
timeout-minutes: 10
813
steps:
9-
- uses: actions/checkout@v2
14+
- uses: actions/setup-go@v3
15+
with:
16+
go-version: 1.17
17+
- uses: actions/checkout@v3
1018
- name: golangci-lint
11-
uses: golangci/golangci-lint-action@v2
19+
uses: golangci/golangci-lint-action@v3
1220
with:
13-
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
14-
version: v1.45
15-
16-
# Optional: working directory, useful for monorepos
17-
# working-directory: somedir
18-
19-
# Optional: golangci-lint command line arguments.
20-
args: --timeout=10m
21-
22-
# Optional: show only new issues if it's a pull request. The default value is `false`.
23-
# only-new-issues: true
21+
version: latest

0 commit comments

Comments
 (0)