Add configPointer input, examples for package.json/pyproject.toml.

This commit is contained in:
David Anson
2026-03-25 21:04:58 -07:00
parent 154744fb7a
commit 08fc3a21b1
9 changed files with 401 additions and 3 deletions
+2
View File
@@ -1,5 +1,7 @@
CommonMark
config
configPointer
JSON
LLMs
markdownlint-cli2-action
npm
+30
View File
@@ -96,6 +96,36 @@ jobs:
id: test
- run: exit 1
if: steps.test.outcome != 'failure'
package-json:
name: package.json (test/errors.md, 2 errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: rm .markdownlint.json
- uses: ./
with:
config: 'config/package.json'
configPointer: '/markdownlint-cli2'
globs: 'test/*.md'
continue-on-error: true
id: test
- run: exit 1
if: steps.test.outcome != 'failure'
pyproject-toml:
name: pyproject.toml (test/errors.md, 2 errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: rm .markdownlint.json
- uses: ./
with:
config: 'config/pyproject.toml'
configPointer: '/tool/markdownlint-cli2'
globs: 'test/*.md'
continue-on-error: true
id: test
- run: exit 1
if: steps.test.outcome != 'failure'
fix:
name: fix (test/errors.md, 0 errors)
runs-on: ubuntu-latest