From c4a8fd2ca15e52dde3b915e157e8e377517bd16e Mon Sep 17 00:00:00 2001 From: alex2276564 Date: Thu, 9 Jan 2025 12:34:34 +0300 Subject: [PATCH] update build.yml and add markdownlint config --- .github/workflows/build.yml | 18 ++++++++++++++---- .markdownlint.jsonc | 3 +++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .markdownlint.jsonc diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f895e02..56b5375 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,13 +2,23 @@ name: Build FOSSManualPayment on: push: - branches: - - main pull_request: - branches: - - main jobs: + lint-markdown: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Lint Markdown files + uses: DavidAnson/markdownlint-cli2-action@v19 + with: + globs: '**/*.md' # Checks all Markdown files in the repository + fix: true # automatically fixes simple problems + config: '.markdownlint.jsonc' # if you have a configuration file +# continue-on-error: true # to prevent the build from crashing due to errors in the documentation + + build: runs-on: ubuntu-latest steps: diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc new file mode 100644 index 0000000..73cb980 --- /dev/null +++ b/.markdownlint.jsonc @@ -0,0 +1,3 @@ +{ + "MD013": false +} \ No newline at end of file