Skip to content

docs: link the standalone terraform-provider-example repo (#5) #12

docs: link the standalone terraform-provider-example repo (#5)

docs: link the standalone terraform-provider-example repo (#5) #12

Workflow file for this run

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