Add CI checks - #22
Conversation
|
Firetiger deploy monitoring skipped This PR didn't match the auto-monitor filter configured on your GitHub connection:
Reason: PR targets the To monitor this PR anyway, reply with |
8f2a605 to
bd360f1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9dad510. Configure here.
| if [ -n "$doc_status" ]; then | ||
| echo "$doc_status" | ||
| git diff -- docs/index.md docs/resources docs/data-sources | ||
| exit 1 |
There was a problem hiding this comment.
Docs drift check misses paths
Medium Severity
The generated-docs gate only runs git status on docs/index.md, docs/resources, and docs/data-sources. tfplugindocs can also write under docs/guides, docs/functions, and docs/ephemeral-resources, so new or changed files there would not fail CI despite the PR describing detection of any new generated docs.
Reviewed by Cursor Bugbot for commit 9dad510. Configure here.
bd360f1 to
3aef6bf
Compare
3aef6bf to
bf05d6c
Compare
bf05d6c to
fcd6018
Compare
fcd6018 to
18ae6de
Compare
18ae6de to
15631e7
Compare
15631e7 to
63ccd25
Compare
63ccd25 to
b142cbd
Compare
b142cbd to
a912f02
Compare
a912f02 to
a915e49
Compare
a915e49 to
73dd903
Compare
0e49b35 to
ff51a9f
Compare
73dd903 to
ddb94b8
Compare
ddb94b8 to
470915a
Compare
470915a to
ab5c4e6
Compare
17c4016 to
5763ea7
Compare
5763ea7 to
18e6e18
Compare
18e6e18 to
8634e1d
Compare
8634e1d to
7a7c362
Compare
7a7c362 to
942b0b2
Compare
6db4db7 to
95a65af
Compare
942b0b2 to
07ca4b4
Compare
07ca4b4 to
3f446e4
Compare
3f446e4 to
5c629a9
Compare
5c629a9 to
d3feeaf
Compare
d3feeaf to
d0f362d
Compare
d0f362d to
af26eda
Compare
06f19d8 to
ee8d5f6
Compare
af26eda to
8d3c5b2
Compare
8d3c5b2 to
585d3fb
Compare


What changed
main.scripts/check-docs.shto regenerate and validate Terraform docs from the real provider schema.go test -short -timeout=2m ./....docs/teach.mdwith the CI/test-speed lesson.Intentionally unsupported
TF_ACC=1,KERNEL_ACC=1, and Kernel credentials.Tests run
bash -n scripts/check-docs.shterraform fmt -check -recursive examplesGOCACHE=/private/tmp/terraform-provider-kernel-ci-go-cache go test -short -timeout=2m ./...GOCACHE=/private/tmp/terraform-provider-kernel-ci-go-cache go vet ./...files="$(gofmt -l cmd internal)"; if [ -n "$files" ]; then echo "$files"; exit 1; figit diff --check generated-terraform-docsbash scripts/check-docs.shReview gates
All five gates passed after the accepted autoreview fix:
Note
Low Risk
CI and documentation drift checks only; no runtime, auth, or provider behavior changes in this diff.
Overview
Adds GitHub Actions CI on pull requests and pushes to
mainwith read-only repo permissions and a 10-minute job timeout.The workflow runs Go formatting (
gofmtoncmdandinternal), Terraform example formatting,go test -short -timeout=2m ./...,go vet, and a generated docs gate via newscripts/check-docs.sh. That script regenerates provider docs throughscripts/generate-docs.shand fails CI ifdocs/index.md,docs/resources, ordocs/data-sourcesdrift from what’s committed.Reviewed by Cursor Bugbot for commit 48e3b33. Bugbot is set up for automated code reviews on this repo. Configure here.