Skip to content

Commit

Permalink
workflows: add ShellCheck and ignore existing files with issues
Browse files Browse the repository at this point in the history
This adds ShellCheck to the repository, but ignores the files with issues for now. The idea is to prevent ShellCheck errors in new code, but allow old code to be fixed over time.

Signed-off-by: Tobias Schwarz <info@tobias-schwarz.com>
  • Loading branch information
Noki committed Feb 7, 2023
1 parent b2a8bb5 commit 9323554
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/shellcheck-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: ShellCheck Lint
on: [push, pull_request] # yamllint disable-line rule:truthy

jobs:
build:
name: Lint ShellCheck
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Lint ShellCheck
uses: ludeeus/action-shellcheck@master
with:
ignore_paths: > # TODO: fix the issues in all these files and remove the lines afterwards
./fetch_translation_tools.sh
./luci/luci-app-falter-owm/files/owm.sh
./packages/falter-berlin-admin-keys/files/register_keys.sh
./packages/falter-berlin-autoupdate/files/autoupdate.sh
./packages/falter-berlin-autoupdate/files/lib_autoupdate.sh
./packages/falter-berlin-autoupdate/files/post-inst.sh
./packages/falter-berlin-bbbdigger/files/postinst.sh
./packages/falter-berlin-lib-guard/files/lib/functions/guard.sh
./packages/falter-berlin-migration/files/lib/functions/semver.sh
./packages/falter-berlin-migration/uci-defaults/freifunk-berlin-01-migration.sh
./packages/falter-berlin-network-defaults/lib/functions/freifunk-berlin-network.sh
./packages/falter-berlin-ssid-changer/files/lib/lib_ssid-changer.sh
./packages/falter-berlin-tunnelmanager/files/down.sh
./packages/falter-berlin-tunnelmanager/files/tunnelman.sh
./packages/falter-berlin-tunnelmanager/files/up.sh
./packages/falter-common/files-common/etc/profile.d/10_dynbanner.sh
./packages/falter-common/files-common/usr/bin/watch.sh

0 comments on commit 9323554

Please sign in to comment.