From bf398ebafa41c3ac68674cbb912e17384c4be76a Mon Sep 17 00:00:00 2001 From: ulises-jeremias Date: Thu, 16 Jul 2026 03:16:51 -0300 Subject: [PATCH] ci: markdownlint and shellcheck workflows Closes #46 Co-authored-by: Cursor --- .github/workflows/markdownlint.yml | 15 +++++++++++++++ .github/workflows/shellcheck.yml | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/markdownlint.yml create mode 100644 .github/workflows/shellcheck.yml 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