From 95bd8f7df9abdbfb88d8c7e199509d4f19bd9417 Mon Sep 17 00:00:00 2001 From: Beau Hastings Date: Tue, 17 Dec 2024 15:32:58 -0600 Subject: [PATCH] replace: travis-ci with github actions Signed-off-by: Beau Hastings --- .github/workflows/shellcheck.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 3 --- README.md | 2 +- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/shellcheck.yml delete mode 100644 .travis.yml 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