Add 2025 project subject #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: shellcheck | |
| # This pipeline runs shellcheck on all files with extension .sh, | |
| # except the ones listed in .github/workflows/shellcheck-exceptions.txt. | |
| on: | |
| push: | |
| merge_group: | |
| pull_request: | |
| jobs: | |
| shellcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Shellcheck | |
| run: | | |
| for file in $(git ls-files "*.sh") | |
| do | |
| if grep -q "$file" ".github/workflows/shellcheck-exceptions.txt" | |
| then | |
| echo "⚠️ $file is ignored from shellcheck's verifications. Please consider fixing it." | |
| else | |
| echo "shellcheck \"$file\"" | |
| shellcheck "$file" | |
| fi | |
| done |