diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..c40b55e --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,41 @@ +name: ShellCheck + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + shellcheck: + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Install ShellCheck + run: | + sudo apt-get update + sudo apt-get install -y shellcheck + + - name: Run bash syntax checks + run: | + bash -n install.sh + bash -n uninstall.sh + bash -n bin/deckless-steam + bash -n bin/deckless-bigpicture + bash -n bin/deckless-i3-bigpicture-bridge + + - name: Run ShellCheck + run: | + shellcheck \ + install.sh \ + uninstall.sh \ + bin/deckless-steam \ + bin/deckless-bigpicture \ + bin/deckless-i3-bigpicture-bridge diff --git a/README.md b/README.md index 99c0031..b94d697 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Deckless +[![ShellCheck](https://github.com/m1ngsama/deckless/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/m1ngsama/deckless/actions/workflows/shellcheck.yml) + Deckless is a Linux toolkit that keeps the official Steam package intact while fixing three pain points that desktop Linux users regularly hit outside SteamOS: - split proxy policy for Steam web content vs. game traffic