Skip to content

Commit

Permalink
tests/provider: Ensure awsproviderlint source is dependency and lint …
Browse files Browse the repository at this point in the history
…checked (#14131)

* tests/provider: Ensure awsproviderlint source is dependency and lint checked

Reference: #14129

* provider: Add awsproviderlint to make fmt target
  • Loading branch information
bflad authored Jul 24, 2020
1 parent ff3baf0 commit 322cce1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- 'release/**'
pull_request:
paths:
- awsproviderlint/** # go/analysis/analysistest requires vendoring
- go.mod
- go.sum
- vendor/**
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/terraform_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ jobs:
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
- run: go install github.com/golangci/golangci-lint/cmd/golangci-lint
- run: golangci-lint run ./aws/...
- run: golangci-lint run ./awsproviderlint/...

goreleaser:
needs: [go_mod_download]
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ testacc: fmtcheck

fmt:
@echo "==> Fixing source code with gofmt..."
gofmt -s -w ./$(PKG_NAME)
gofmt -s -w ./$(PKG_NAME) ./awsproviderlint

# Currently required by tf-deploy compile
fmtcheck:
Expand Down

0 comments on commit 322cce1

Please sign in to comment.