-
Notifications
You must be signed in to change notification settings - Fork 189
INTMDB-788: Add Code-health action #1144
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
Conversation
while IFS= read -r -d '' f; do | ||
if [ "${1-}" = "diff" ]; then | ||
echo "$f" | ||
cat "$f" | node_modules/.bin/codedown hcl | terraform fmt -diff=true - | ||
< "$f" node_modules/.bin/codedown hcl | terraform fmt -diff=true - | ||
else | ||
cat "$f" | node_modules/.bin/codedown hcl | terraform fmt -check=true - || problems=true && echo "Formatting errors in $f" | ||
< "$f" node_modules/.bin/codedown hcl | terraform fmt -check=true - || { problems=true && echo "Formatting errors in $f"; } | ||
fi | ||
done | ||
done < <(find website -name '*.markdown' -print0) |
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.
Hi @martinstibbe, is this script still used? when I run make websitefmtcheck
the script says that there are some markdown with formatting errors 😕
Should we run this script as part of the code-health action?
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.
Since TF registry website test stopped working as the deprecated the local site document testing if we do not call this one via a GH action may not be used golangci-lint run is in current workflows
.github/workflows/automated-test.yml
Outdated
pull_request: | ||
|
||
jobs: | ||
tests: |
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.
move to code-health
@@ -1,22 +0,0 @@ | |||
--- | |||
name: golangci-lint |
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.
moved to code-health
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 pending @martinstibbe feedback
…ogs is set to true, when copying backups to other regions (#1150)
Hi @martinstibbe 👋 Could you review this PR when you have time, please? I am not sure if I can merge it after your comment |
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
Description
Proposed changes:
Create a
code-health
workflow similar to what we have in CFN and CDKThis new workflow runs the following jobs:
Type of change:
Required Checklist:
Further comments
Next Steps: