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
ci(orc8r): Added Terraform Lint CI Check #12081
ci(orc8r): Added Terraform Lint CI Check #12081
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
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!
branches: | ||
- master | ||
- 'v1.*' | ||
|
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 we add some concurrency configs? @quentinDERORY
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.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number}}
cancel-in-progress: true
Maybe something like this in alignment with the other linters.
For common tasks such as lint check, should we start using actions from marketplace? |
I have updated code, now using action from marketplace. |
Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com>
Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com>
Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com>
Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com>
Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com>
b089796
to
b350105
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.
For common tasks such as lint check, should we start using actions from marketplace? https://github.com/marketplace/actions/terraform-lint-action
I agree that using Actions from Marketplace might be a good idea.
However, on top of that we might want to stick to the standard ReviewDog provided linters where possible, as they provide excellent integration with Github out of the box, and avoid custom code here.
In particular for this case this would mean to us tflint.
This would also have the advantage that it could also easily be integrated with our existing set (and setup) of reviewdog.
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the DCO check after the last commit. |
a31bb12
to
8794f89
Compare
Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com>
8794f89
to
12d041d
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.
More linters are always good and this PR LGTM in general.
We might consider to us tflint and integrate it with our our existing set (and setup) of reviewdog linters to benefit from the excellent Github integration of reviewdog 🐶.
* ci(orc8r): Added Terraform Lint CI Check Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com> * fixed yaml lint Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com> * fixed yaml indentation Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com> * Used lint action from marketplace Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com> * indent bug fix Signed-off-by: Shubham Tatvamasi <shubhamtatvamasi@gmail.com>
Signed-off-by: Shubham Tatvamasi shubhamtatvamasi@gmail.com
Summary
Test Plan
Additional Information