diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..50d2eaa --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,28 @@ +name: ShellCheck CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + shellcheck: + name: Run ShellCheck + runs-on: ubuntu-latest + + steps: + # Step 1: Check out the code + - name: Checkout code + uses: actions/checkout@v4 + + # Step 2: Install ShellCheck + - name: Install ShellCheck + run: sudo apt-get install -y shellcheck + + # Step 3: Run ShellCheck on all shell scripts + - name: Run ShellCheck + run: | + shellcheck **/*.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8e51f06..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: bash -script: - - shellcheck volume diff --git a/README.md b/README.md index 56b3a22..721d943 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Copyright (C) 1989, 1991 Free Software Foundation, Inc. [alsa-utils]: https://alsa.opensrc.org/Alsa-utils [bspwm]: https://github.com/baskerville/bspwm -[build]: https://travis-ci.org/hastinbe/i3-volume.svg?branch=master +[build]: https://github.com/hastinbe/i3-volume/actions/workflows/shellcheck.yml/badge.svg [dunst]: https://dunst-project.org [herbe]: https://github.com/dudik/herbe [KDE]: https://kde.org