File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ defaults:
16
16
run :
17
17
shell : bash
18
18
19
- env :
20
- GOLANGCI_TIMEOUT : 10m0s
21
-
22
19
jobs :
23
20
24
21
lint :
27
24
steps :
28
25
- name : Checkout Repository
29
26
uses : actions/checkout@v2
27
+ - name : Output Variables
28
+ id : vars
29
+ run : echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)"
30
+ - name : Setup Golang Environment
31
+ uses : actions/setup-go@v2
32
+ with :
33
+ go-version : ${{ steps.vars.outputs.go_version }}
30
34
- name : Lint Code
31
35
uses : golangci/golangci-lint-action@v3
32
- with :
33
- args : --timeout ${{ env.GOLANGCI_TIMEOUT }}
Original file line number Diff line number Diff line change @@ -60,3 +60,5 @@ linters:
60
60
issues :
61
61
max-issues-per-linter : 0
62
62
max-same-issues : 0
63
+ run :
64
+ timeout : 5m
You can’t perform that action at this time.
0 commit comments