docs: link the standalone terraform-provider-example repo (#5) #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| check-latest: true | |
| - name: Build | |
| run: go build ./... | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test ./... -count=1 -timeout 5m | |
| env: | |
| # Acceptance tests are explicitly disabled in CI per spec D4. | |
| TF_ACC: "" | |
| - name: Gofmt check | |
| run: | | |
| out=$(gofmt -l .) | |
| if [ -n "$out" ]; then | |
| echo "Files need gofmt:" | |
| echo "$out" | |
| exit 1 | |
| fi | |
| - name: Docs stale check | |
| run: | | |
| go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name cloudless | |
| if ! git diff --exit-code docs/; then | |
| echo "docs/ is stale — run 'make docs' and commit the result" | |
| exit 1 | |
| fi |