Skip to content

Commit d9c012d

Browse files
committed
add working-directory to linter config
1 parent 54e3a69 commit d9c012d

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

.github/workflows/linux.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,4 @@ jobs:
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

0 commit comments

Comments
 (0)