Skip to content

Commit

Permalink
ci: call shellcheck on the bash script
Browse files Browse the repository at this point in the history
Sadly, shellcheck does not support zsh [1], and it's not even possible
to evaluate the script with zsh because it fails with:
  _arguments:comparguments:327: can only be called from completion function
So the zsh script shall not be checked.

[1] koalaman/shellcheck#809
  • Loading branch information
keszybz committed Jul 21, 2024
1 parent 16bcf98 commit d6acc44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ jobs:
./builddir/mkosi -h
./builddir/mkosi documentation
- name: Test shell scripts
- name: Run shellcheck on scripts
run: |
sudo apt-get update && sudo apt-get install --no-install-recommends shellcheck
bash -c 'shopt -s globstar; shellcheck bin/mkosi tools/*.sh'
bin/mkosi completion bash | shellcheck -
- name: Test man page generation
run: pandoc -s mkosi.md -o mkosi.1
Expand Down

0 comments on commit d6acc44

Please sign in to comment.