-
Notifications
You must be signed in to change notification settings - Fork 27
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
build: provide ShellCheck shared workflow & template #64
build: provide ShellCheck shared workflow & template #64
Conversation
33a7096
to
6c3f604
Compare
e976575
to
0aa862e
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.
Alright, I reorganized this based on the discussions above, and this seems to be working. Some notes for reviewers.
0aa862e
to
096994d
Compare
workflow-templates/shellcheck.yml
Outdated
|
||
jobs: | ||
shellcheck: | ||
runs-on: ubuntu-latest |
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.
This check only runs on Ubuntu.
I was tempted to generalize it to MacOS. It would be easy enough to use a build matrix here so that this runs on both ubuntu-latest and macos-latest. What would be a little more difficult is ensuring that we download the correct binary in action.yml.
I decided against that because I've already been at this for a few days, and I feel like I could spend another week tweaking and perfecting everything, but it's not clear to me that it'd be time well spent. If you disagree, let me know.
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.
Just kidding, I thought of a way to do this that wasn't too bad.
Alright @timmc-edx @feanil, both this and the edx-platform PR are ready for review! |
de309aa
to
baa8e06
Compare
Alright @timmc-edx @feanil , I changed it back from an action to a shared workflow. Fortunately, the code seems much simpler and the output is much nicer. This and the edx-platform PR are both ready for review again. |
92e96ee
to
b287219
Compare
@feanil @timmc-edx Latest changes are:
Screenshots have also been updated. |
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.
Two small changes that I think are worth making for clarity but otherwise this looks good to me. I don't need to review again before you merge.
Co-authored-by: Feanil Patel <[email protected]>
180a09a
to
aad1e21
Compare
Description
Supporting information
Implements the ShellCheck ADR which was introduced in:
Here's the template in-use in edx-platform:
Other Information
(from edx-platform)
output from a successful build
output of a build with a shellcheck violation
output of a build that failed because no scripts were checked