File tree Expand file tree Collapse file tree 2 files changed +27
-15
lines changed Expand file tree Collapse file tree 2 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 1+ name : golangci-lint
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ golangci :
7+ name : lint
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ with :
12+ path : src/github.com/aws/amazon-ecs-agent
13+ - name : GO_VERSION
14+ run : |
15+ cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
16+ echo "GO_VERSION=$(cat GO_VERSION)" >> $GITHUB_ENV
17+ - uses : actions/setup-go@v2
18+ with :
19+ go-version : ${{ env.GO_VERSION }}
20+ - name : golangci-lint
21+ uses : golangci/golangci-lint-action@v2
22+ with :
23+ version : v1.42.1
24+ args : -v
25+ skip-go-installation : true
26+ only-new-issues : true
Original file line number Diff line number Diff line change 2727 export GO111MODULE=auto
2828 cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
2929 make test-silent
30- make analyze-cover-profile
31- golangci :
32- name : lint
33- runs-on : ubuntu-latest
34- steps :
35- - uses : actions/setup-go@v3
36- with :
37- go-version : 1.17
38- - uses : actions/checkout@v3
39- - name : golangci-lint
40- uses : golangci/golangci-lint-action@v3
41- with :
42- # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
43- version : latest
44-
30+ make analyze-cover-profile
You can’t perform that action at this time.
0 commit comments