File tree Expand file tree Collapse file tree 2 files changed +25
-15
lines changed Expand file tree Collapse file tree 2 files changed +25
-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+ - name : GO_VERSION
12+ run : |
13+ cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
14+ echo "GO_VERSION=$(cat GO_VERSION)" >> $GITHUB_ENV
15+ - uses : actions/setup-go@v2
16+ with :
17+ go-version : ${{ env.GO_VERSION }}
18+ - name : golangci-lint
19+ uses : golangci/golangci-lint-action@v2
20+ with :
21+ version : v1.42.1
22+ args : -v
23+ skip-go-installation : true
24+ 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