0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-10-16 12:07:01 +02:00

Move .markdownlint.jsonc file to avoid interfering with action tests.

This commit is contained in:
David Anson 2022-07-22 23:16:36 -07:00
parent a2b28da4d9
commit 3e81dbb382
5 changed files with 26 additions and 26 deletions

View file

@ -15,13 +15,13 @@ jobs:
- run: npm install --no-package-lock
- run: npm run test
no-globs:
name: No globs (README.md, no errors)
name: No globs (README.md, 0 errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
one-glob:
name: One glob (test/errors.md, errors)
name: One glob (test/errors.md, 3 errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -29,7 +29,7 @@ jobs:
with:
globs: test/errors.md
two-globs:
name: Two globs (README.md and test/errors.md, errors)
name: Two globs (README.md and test/errors.md, 3 errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -39,7 +39,7 @@ jobs:
*.md
test/*
command-config:
name: Command = config (test/errors.md, errors)
name: Command = config (test/errors.md, 2 errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -50,7 +50,7 @@ jobs:
config/.markdownlint.jsonc
test/*
command-config-missing:
name: Command = config (missing configuration file)
name: Command = config (missing configuration file, fails)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -58,7 +58,7 @@ jobs:
with:
command: config
command-fix:
name: Command = fix (test/errors.md, no errors)
name: Command = fix (test/errors.md, 0 errors)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View file

@ -1,18 +0,0 @@
{
"line-length": {
"strict": true,
"code_blocks": false
},
"proper-names": {
"code_blocks": false,
"names": [
"CommonMark",
"JavaScript",
"Markdown",
"markdown-it",
"markdownlint",
"markdownlint-cli2",
"Node.js"
]
}
}

View file

@ -1,3 +1,18 @@
{
"single-trailing-newline": false
"line-length": {
"strict": true,
"code_blocks": false
},
"proper-names": {
"code_blocks": false,
"names": [
"CommonMark",
"JavaScript",
"Markdown",
"markdown-it",
"markdownlint",
"markdownlint-cli2",
"Node.js"
]
}
}

View file

@ -0,0 +1,3 @@
{
"single-trailing-newline": false
}

View file

@ -17,7 +17,7 @@
"build": "ncc build markdownlint-cli2-action.js",
"docker-npm-install": "docker run --rm --tty --name npm-install --volume $PWD:/home/workdir --workdir /home/workdir --user node node:16 npm install",
"docker-npm-run-upgrade": "docker run --rm --tty --name npm-run-upgrade --volume $PWD:/home/workdir --workdir /home/workdir --user node node:16 npm run upgrade",
"lint": "eslint *.js && markdownlint-cli2 *.md",
"lint": "eslint *.js && markdownlint-cli2-config ./config/.markdownlint.jsonc *.md",
"test": "npm run lint && npm run build && git diff --exit-code",
"upgrade": "npx --yes npm-check-updates --upgrade"
},