From fe81dcb39ebaacc089510891633409dec5f6d0bc Mon Sep 17 00:00:00 2001 From: Santiago Traversa Date: Mon, 3 Feb 2025 19:05:54 -0300 Subject: [PATCH 1/3] Adds YAMLlint --- .github/dependabot.yml | 3 +++ .github/workflows/check_deps.yml | 2 ++ .yamllint | 9 +++++++++ 3 files changed, 14 insertions(+) create mode 100644 .yamllint diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0ef8c69..f81f4db 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,5 @@ +--- + version: 2 updates: - package-ecosystem: "github-actions" @@ -9,3 +11,4 @@ updates: labels: - task - dependencies + - automerge diff --git a/.github/workflows/check_deps.yml b/.github/workflows/check_deps.yml index 133ebc6..d36288b 100644 --- a/.github/workflows/check_deps.yml +++ b/.github/workflows/check_deps.yml @@ -1,3 +1,5 @@ +--- + name: Check Dependencies on: diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..f383e9d --- /dev/null +++ b/.yamllint @@ -0,0 +1,9 @@ +--- +extends: default +rules: + line-length: + max: 256 + level: warning + truthy: + ignore: | + /.github/workflows/*.yml From 3f0cfd6e43121acd9a69d3eaa732a085bc3f20c3 Mon Sep 17 00:00:00 2001 From: Santiago Traversa Date: Mon, 3 Feb 2025 19:06:03 -0300 Subject: [PATCH 2/3] Adds Markdown linter --- .markdownlint.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .markdownlint.yaml diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..5935c62 --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,13 @@ +--- +default: true + +# no-hard-tabs +MD010: + code_blocks: false + +# no-multiple-blanks +MD012: + maximum: 2 + +# line-length +MD013: false From 50f7514ad022d830fab60462a94e8130da17d482 Mon Sep 17 00:00:00 2001 From: Santiago Traversa Date: Mon, 3 Feb 2025 19:06:45 -0300 Subject: [PATCH 3/3] Adds both Markdown and YAML linters to Github Action CI --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a92f25f..e027e7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,12 @@ +--- + name: CI on: pull_request: push: - branches: [ "main" ] + branches: + - main workflow_dispatch: concurrency: @@ -11,6 +14,25 @@ concurrency: cancel-in-progress: true jobs: + markdownlint-cli: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Run markdownlint-cli + uses: nosborn/github-action-markdown-cli@v3.4.0 + with: + files: . + config_file: ".markdownlint.yaml" + + yamllint: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Run YAML Lint + uses: actionshub/yamllint@main + build: name: Build runs-on: ubuntu-latest @@ -44,6 +66,8 @@ jobs: needs: - build + - markdownlint-cli + - yamllint steps: - uses: actions/checkout@v4