Skip to content

Commit de98f71

Browse files
committed
further fixed to the build issues
1 parent 208cb47 commit de98f71

File tree

4 files changed

+44
-20
lines changed

4 files changed

+44
-20
lines changed

.github/workflows/documentation.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ env:
1616
GO111MODULE: on
1717

1818
jobs:
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:

.github/workflows/pull_request.yml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,41 @@ jobs:
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:
@@ -49,7 +83,12 @@ jobs:
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:

.markdownlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ MD014: false
1818
MD022: false
1919
MD024: false
2020
MD034: false
21+
MD033: false
2122
MD038: false
2223
MD040: false
2324
MD047: false

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ TFPROVIDERLINT = tfproviderlint
66
DEPS_TOOLS = deps_tools
77
GOFUMPT = gofumpt
88
TFDOCS-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)
1211
SECURITY_TOOLS = $(GOSEC)
1312

1413
MARKDOWNLINT_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

0 commit comments

Comments
 (0)