CI: Run shellcheck & shfmt on PRs & branches#2635
CI: Run shellcheck & shfmt on PRs & branches#2635ann0see merged 1 commit intojamulussoftware:masterfrom
Conversation
|
Any advantages/disadvantages to put this into the clang format run? |
|
Do you mean combining the workflows? |
|
Spinning up a runner also costs. Maybe even more? |
|
Does anyone manually run the clang-format check? Would they be expecting it to start worrying about scripts? Conversely, would anyone want to only run the script check without the full clang-format check? Given how quick running "make clang_format" is, I'd expect spinning up the builder to be the most expensive part of the process in terms of elapse time, if nothing else. On the whole, I'm tending towards just bundling it all together. I'd keep separate "make" options, though. |
|
Yeah. Probably putting it together is cleaner and sustainable? |
|
@hoffie I think we should put it into the clang format file and run it only if there are changes to cpp, mm, sh, h, ... files. |
4fe479e to
a8db77e
Compare
a8db77e to
b639cb0
Compare
Done. It's a bit unnatural to do this in a single job, but splitting into multiple jobs (even as part of the same workflow) would probably require fresh runners so it wouldn't save us anything. |
Short description of changes
Run shellcheck & shfmt on PRs & branches
Example run:
https://github.com/hoffie/jamulus/runs/6716242088?check_suite_focus=true
CHANGELOG: Scripts: Coding style and static checks for shell scripts are now enforced.
Context: Fixes an issue?
Related: #2474
Does this change need documentation? What needs to be documented and how?
No.
Status of this Pull Request
Ready.
What is missing until this pull request can be merged?
Reviews.
Checklist