diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index e21016a..d0c93f0 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -18,3 +18,12 @@ jobs: uses: gitleaks/gitleaks-action@v2 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + ShellCheck: + runs-on: ubuntu-latest + steps: + - name: Check out the repository code + uses: actions/checkout@v4 + + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master diff --git a/Makefile b/Makefile index 4135a95..e5f8d32 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help del ssh backup +.PHONY: help del ssh backup check-scripts help: ## Show help. @printf "A set of environment management commands.\n" @@ -22,3 +22,7 @@ ssh: ## Copy the SSH public key to your clipboard. backup: ## Back up your applications list. @echo "Backing up your applications list..." @brew bundle dump --file=./brew/Brewfile --force + +check-scripts: ## Check the shell script. + @echo "Checking the shell script..." + @schellcheck *.sh diff --git a/brew/Brewfile b/brew/Brewfile index bb42926..2a5fc53 100644 --- a/brew/Brewfile +++ b/brew/Brewfile @@ -7,6 +7,7 @@ tap "homebrew/services" # Essentials brew "stow" brew "git" +brew "shellcheck" # Terminal brew "spaceship"