-
Notifications
You must be signed in to change notification settings - Fork 52
[AOMP] Add shellcheck workflow #1435
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
base: aomp-dev
Are you sure you want to change the base?
Conversation
This adds an initial (crude) shellcheck workflow. This can be refined much more. - Use shellcheck directly from maintainer github. - Filter which files to check. - Come up with set of guidelines / rules for errs/warns.
Use find + xargs to make the job fail in case shellcheck found issues.
This depends on #1252 and makes only sense once that has landed. |
.github/workflows/aomp-shell.yml
Outdated
- name: Set up shellcheck | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y shellcheck |
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.
I don't think we want to be running apt-get update & a possible install on every checkout of aomp. I would drop out this part. We can just install shellcheck as needed (I've added it to git/apps/openmp/sysadmin/install-3-other for new system setup/refresh)
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.
I agree with Dan. I added the install instructions to SOURCEINSTALL_PREREQUISITE.md
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.
No description provided.