provider-build-test

star 185

Regenerate Go code from resourceDefinition.json, build the terraform-provider-azurecaf binary, and run unit tests. Use after any change to resourceDefinition.json to verify the provider compiles and tests pass.

aztfmod By aztfmod schedule Updated 2/17/2026

name: provider-build-test description: "Regenerate Go code from resourceDefinition.json, build the terraform-provider-azurecaf binary, and run unit tests. Use after any change to resourceDefinition.json to verify the provider compiles and tests pass."

Provider Build & Test

Run from the project root after editing resourceDefinition.json:

go generate          # regenerates azurecaf/models_generated.go
make build           # runs go generate + go fmt + go build + go test

Verify the resource appears in generated code:

grep "<resource_name>" azurecaf/models_generated.go

Expected output: ok for all test packages, coverage ~90%+, no compilation errors.

If go generate fails: check JSON formatting (missing commas, unmatched quotes, bad escapes). If tests fail: check for duplicate slugs causing ambiguity.

Install via CLI
npx skills add https://github.com/aztfmod/terraform-provider-azurecaf --skill provider-build-test
Repository Details
star Stars 185
call_split Forks 99
navigation Branch main
article Path SKILL.md
More from Creator