File tree Expand file tree Collapse file tree 4 files changed +44
-20
lines changed
Expand file tree Collapse file tree 4 files changed +44
-20
lines changed Original file line number Diff line number Diff line change 1616 GO111MODULE : on
1717
1818jobs :
19- markdown-link-check :
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@v4
23- - uses : gaurav-nelson/github-action-markdown-link-check@1.0.15
24- with :
25- use-quiet-mode : ' yes'
26- use-verbose-mode : ' yes'
27- config-file : ' .markdownlinkcheck.json'
28- folder-path : ' docs'
29- file-extension : ' .md'
3019 markdown-lint :
3120 runs-on : ubuntu-latest
3221 steps :
Original file line number Diff line number Diff line change 2929 run : make check-release
3030 - name : Fail if changes
3131 run : git diff-index --exit-code HEAD
32-
32+ markdown-link-check :
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v4
36+ - uses : gaurav-nelson/github-action-markdown-link-check@1.0.15
37+ with :
38+ use-quiet-mode : ' yes'
39+ use-verbose-mode : ' yes'
40+ config-file : ' .markdownlinkcheck.json'
41+ folder-path : ' docs'
42+ file-extension : ' .md'
43+ markdown-lint :
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/checkout@v4
47+ - uses : avto-dev/markdown-lint@v1.5.0
48+ with :
49+ config : ' .markdownlint.yml'
50+ args : ' docs'
51+ misspell :
52+ runs-on : ubuntu-latest
53+ steps :
54+ # Checkout should always be before setup-go to ensure caching is working
55+ - uses : actions/checkout@v4
56+ - uses : actions/setup-go@v5
57+ with :
58+ go-version : ${{ env.GO_VERSION }}
59+ - uses : actions/cache@v4
60+ continue-on-error : true
61+ timeout-minutes : 2
62+ with :
63+ path : ~/go/pkg/mod
64+ key : ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
65+ - run : go install github.com/client9/misspell/cmd/misspell@latest
66+ - run : misspell -error -source text docs/
3367 gosec_scan :
3468 runs-on : ubuntu-latest
3569 env :
4983 # Run acceptance tests in a matrix with Terraform CLI versions
5084 test :
5185 name : Terraform Provider Acceptance Tests
52- needs : [build, gosec_scan]
86+ needs :
87+ - build
88+ - gosec_scan
89+ - markdown-link-check
90+ - markdown-lint
91+ - misspell
5392 runs-on : ubuntu-latest
5493 timeout-minutes : 15
5594 strategy :
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ MD014: false
1818MD022 : false
1919MD024 : false
2020MD034 : false
21+ MD033 : false
2122MD038 : false
2223MD040 : false
2324MD047 : false
Original file line number Diff line number Diff line change @@ -6,9 +6,8 @@ TFPROVIDERLINT = tfproviderlint
66DEPS_TOOLS = deps_tools
77GOFUMPT = gofumpt
88TFDOCS-PLUGIN = tfdocs-plugin
9- GH_CLIENT = GH_CLIENT
109
11- DEVELOPMENT_TOOLS = $(GOX ) $(GOLANGCI_LINT ) $(TFPROVIDERLINT ) $(GOFUMPT ) $(TFDOCS-PLUGIN ) $( GH_CLIENT )
10+ DEVELOPMENT_TOOLS = $(GOX ) $(GOLANGCI_LINT ) $(TFPROVIDERLINT ) $(GOFUMPT ) $(TFDOCS-PLUGIN )
1211SECURITY_TOOLS = $(GOSEC )
1312
1413MARKDOWNLINT_IMG := 06kellyjac/markdownlint-cli
@@ -109,8 +108,4 @@ $(DEPS_TOOLS):
109108 @cd tools && go get github.com/bflad/tfproviderlint/cmd/tfproviderlint
110109 @cd tools && go get github.com/golangci/golangci-lint/cmd/golangci-lint
111110 @cd tools && go mod tidy
112- @go generate -tags tools tools/tools.go
113-
114- $(GH_CLIENT ) :
115- @echo " Installing GitHub CLI..."
116- @brew install gh
111+ @go generate -tags tools tools/tools.go
You can’t perform that action at this time.
0 commit comments