diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml new file mode 100644 index 00000000..844d73d1 --- /dev/null +++ b/.github/workflows/shellcheck.yaml @@ -0,0 +1,21 @@ +--- +name: Shellcheck +on: + pull_request: + types: + - opened + - synchronize +jobs: + shellcheck: + name: Run Shellcheck + runs-on: ubuntu-latest + steps: + - name: Install Shellcheck + run: | + sudo apt update + sudo apt install -y shellcheck + - name: Checkout Git repository + uses: actions/checkout@v4 + - name: Run Shellcheck + run: | + shellcheck **/*.sh diff --git a/test.sh b/test.sh new file mode 100644 index 00000000..f5b7d0b1 --- /dev/null +++ b/test.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +$result="foo" +[[ $1 == $result ]] && echo "victory"