diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml new file mode 100644 index 0000000..8f05a7c --- /dev/null +++ b/.github/workflows/markdownlint.yml @@ -0,0 +1,15 @@ +name: Markdown Lint +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: +jobs: + markdownlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DavidAnson/markdownlint-cli2-action@v19 + with: + globs: "**/*.md" diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..ebdf7b2 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,19 @@ +name: Shellcheck +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: | + if compgen -G "**/*.sh" > /dev/null; then + sudo apt-get update && sudo apt-get install -y shellcheck + find . -name "*.sh" -print0 | xargs -0 shellcheck + else + echo "No shell scripts; skipping" + fi