diff --git a/.github/workflows/test-website-a11y.yml b/.github/workflows/ci.yml similarity index 89% rename from .github/workflows/test-website-a11y.yml rename to .github/workflows/ci.yml index e2a8354..9b97053 100644 --- a/.github/workflows/test-website-a11y.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Website a11y +name: CI on: pull_request: @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: true jobs: - test: + lint-and-test: runs-on: ubuntu-latest env: BUNDLE_PATH: "vendor/bundle" @@ -19,7 +19,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v4 + uses: actions/checkout@v6 + + - name: Lint markdown + uses: DavidAnson/markdownlint-cli2-action@v23 - name: Setup Ruby uses: ruby/setup-ruby@v1 diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc new file mode 100644 index 0000000..4c466e7 --- /dev/null +++ b/.markdownlint-cli2.jsonc @@ -0,0 +1,22 @@ +{ + "globs": ["**/*.md"], + "gitignore": true, + "ignores": ["node_modules/**"], + "config": { + "default": true, + "MD003": { "style": "atx" }, + "MD004": { "style": "dash" }, + "MD007": { "indent": 2 }, + "MD013": false, // allow long lines + "MD024": { "siblings_only": true }, + "MD028": false, // allow separation between quote blocks + "MD033": { + "allowed_elements": ["details", "summary", "br", "sub", "sup", "kbd", "abbr", "a", "img"] + }, + "MD041": false, + "MD046": { "style": "fenced" }, + "MD048": { "style": "backtick" }, + "MD055": { "style": "leading_and_trailing" }, + "MD060": { "style": "compact", "aligned_delimiter": false } + } +}