From 0b31a1df0e353564b3946ef85731f70b2c4cd7d1 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 24 Jun 2024 21:18:45 -0700 Subject: [PATCH] Add shellcheck Signed-off-by: Tommy --- .github/workflows/shellcheck.yml | 37 ++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/shellcheck.yml diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..a9cc06f --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,37 @@ +name: ShellCheck + +on: + workflow_dispatch: + push: + branches: + - master + - main + paths-ignore: + - '**.gitignore' + - '**.md' + - 'LICENSE' + - '**.conf' + - '**.service' + - '**.timer' + - '**.path' + - '**.list' + pull_request: + paths-ignore: + - '**.gitignore' + - '**.md' + - 'LICENSE' + - '**.conf' + - '**.service' + - '**.timer' + - '**.path' + - '**.list' + +jobs: + shellcheck: + name: Bash syntax checker + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master \ No newline at end of file diff --git a/README.md b/README.md index 6a90e61..c25ec76 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # NGINX Configs +[![ShellCheck](https://github.com/TommyTran732/NGINX-Configs/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/TommyTran732/Linux-Setup-Scripts/actions/workflows/shellcheck.yml) + These are my NGINX configurations. They are written for Fedora CoreOS's NGINX build with `nginx-mod-stream`. ## Getting Started