Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The test suite for terraform-provider-helm has been failing since the provider was migrated to the terraform registry in this commit hashicorp/terraform-website@da8a3fa (reason: removal of helm-related symlinks causes helm docs to be ignored by the
terraform-website
container and the test suite here to fail)This is impeding new PRs being accepted on terraform-provider-helm because unit tests fail and hence acceptance tests don't run.
Implementation
This PR replaces the old
website-test
andwebsite
make targets withwebsite-lint
website-lint
is heavily based on hashicorp/terraform-provider-kubernetes#989 which solved this same problem for terraform-provider-kubernetesInstead of spinning up a middleman-hashicorp container from https://github.com/hashicorp/terraform-website it uses other open-source, containerised tools to:
Finally, rather than running
website-lint
along with the unit tests and acceptance tests, it splits them out to a separate Github action which triggers when changes are made to the website path, thus saving a 5-10 min acceptance test suite run for changes which only affect the docs.References
This is complementary to #566
It will hopefully help other PRs like #560 and #572 and make their tests start passing
Community Note