mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2024-11-23 14:46:28 +01:00
Move .markdownlint.jsonc file to avoid interfering with action tests.
This commit is contained in:
parent
a2b28da4d9
commit
3e81dbb382
5 changed files with 26 additions and 26 deletions
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
@ -15,13 +15,13 @@ jobs:
|
||||||
- run: npm install --no-package-lock
|
- run: npm install --no-package-lock
|
||||||
- run: npm run test
|
- run: npm run test
|
||||||
no-globs:
|
no-globs:
|
||||||
name: No globs (README.md, no errors)
|
name: No globs (README.md, 0 errors)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./
|
- uses: ./
|
||||||
one-glob:
|
one-glob:
|
||||||
name: One glob (test/errors.md, errors)
|
name: One glob (test/errors.md, 3 errors)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
globs: test/errors.md
|
globs: test/errors.md
|
||||||
two-globs:
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -39,7 +39,7 @@ jobs:
|
||||||
*.md
|
*.md
|
||||||
test/*
|
test/*
|
||||||
command-config:
|
command-config:
|
||||||
name: Command = config (test/errors.md, errors)
|
name: Command = config (test/errors.md, 2 errors)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -50,7 +50,7 @@ jobs:
|
||||||
config/.markdownlint.jsonc
|
config/.markdownlint.jsonc
|
||||||
test/*
|
test/*
|
||||||
command-config-missing:
|
command-config-missing:
|
||||||
name: Command = config (missing configuration file)
|
name: Command = config (missing configuration file, fails)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -58,7 +58,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
command: config
|
command: config
|
||||||
command-fix:
|
command-fix:
|
||||||
name: Command = fix (test/errors.md, no errors)
|
name: Command = fix (test/errors.md, 0 errors)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
@ -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"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
3
config/test.markdownlint.jsonc
Normal file
3
config/test.markdownlint.jsonc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"single-trailing-newline": false
|
||||||
|
}
|
|
@ -17,7 +17,7 @@
|
||||||
"build": "ncc build markdownlint-cli2-action.js",
|
"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-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",
|
"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",
|
"test": "npm run lint && npm run build && git diff --exit-code",
|
||||||
"upgrade": "npx --yes npm-check-updates --upgrade"
|
"upgrade": "npx --yes npm-check-updates --upgrade"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue