-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform TextMate Test Infrastructure #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I added a few naming suggestions.
f9ad996
to
1de1847
Compare
Moving this to draft. Team has decided to work on the syntax directly on the version in the vscode-terraform repo, then move here once that is complete. |
1de1847
to
668c888
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
.github/workflows/test.yml
Outdated
on: | ||
push: | ||
branches: | ||
- "master" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be main
now
This pulls in latest terraform.tmGrammar.json file from the [vscode-terraform project](https://github.com/hashicorp/vscode-terraform/blob/59174bd3e9a66c177a0f2de5751595d3f1cec838/syntaxes/terraform.tmGrammar.json).
This moves the Terraform grammar file to standard `syntaxes` directory instead of a product specific named directory. This is an unofficial convention among TextMate projects for the file that is distributed to clients.
This enables VS Code to provide intellisense and minimal validation of the tmGrammar files, whether they are json or yaml. It also adds a minimal prettier config to give enough room for the rule line lengths to not wrap excessively, which aids in reading large sections.
This adds testing infrastructure using `vscode-tmgrammar-test` to test the Terraform tmGrammar file. A minimal example file is used to demonstrate basic testing. Additional tests will be added as grammar is modified or changed.
This adds a test runner GitHub Action that runs against new pull requests.
This updates the README and adds documentation on how to edit and test the Terraform tmGrammar. It copies some wording from the vscode-terraform project.
668c888
to
fce7304
Compare
This PR:
syntaxes
directory instead of a product specific named directoryvscode-tmgrammar-test
to test the Terraform tmGrammar file.Close #4