diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index de1eb287df..e0da1a5730 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,6 +15,16 @@ env: golangci-lint-version: v1.46.0 jobs: + scripts: + name: Lint shell scripts + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Run ShellCheck + run: make shellcheck + build: name: Build and Lint runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index b6ea391787..e5e0692564 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,10 @@ generate-helm: deploy/helm-chart/templates/prometheus-rule.yaml deploy/helm-chart/templates/prometheus-rule.yaml: ./scripts/generate-helm-alerts.sh +.PHONY: shellcheck +shellcheck: + shellcheck -S warning -f gcc $(shell find . -type f -name "*.sh") + MDOX_VALIDATE_CONFIG?=.mdox.validate.yaml .PHONY: docs docs: