-
Notifications
You must be signed in to change notification settings - Fork 4
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
[DT-1250][risk=no] Check for lint in the files that have changed between this PR and the destination branch. #2791
Conversation
…ches referenced for the diff.
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 |
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.
Required to get the develop branch.
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.
👍🏽
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.
Looks good, one suggestion below:
Use an environment variable instead of directly referencing the template. Co-authored-by: fboulnois <[email protected]>
I see why the failure is happening, I would switch it to |
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- run: echo "NODE_VERSION=$(cat Dockerfile | awk 'NR==2 {gsub(":","@",$2); print $2}' | awk '{split($0, array, "@"); print array[2]}')" >> $GITHUB_ENV |
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.
Nice!
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.
👍🏽
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.
🎉
Addresses
https://broadworkbench.atlassian.net/browse/DT-1250
Summary
Lint checking on only files that have changed in this PR.
Screenshots
When there's no lint, the action passes as expected. The file in this case is excluded because of linter configuration.

When there's lint, we get a failure:

When the lint is fixed:

Lint history tracked in PR history:

Have you read Terra's Contributing Guide lately? If not, do that first.