Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
*: add shellcheck make target and CI job
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
  • Loading branch information
paulfantom authored and JamesGuthrie committed Jun 24, 2022
1 parent 5f7a61c commit 2bae61c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2bae61c

Please sign in to comment.