mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
[Tests] ensure doctoc
action fails when it should
This commit is contained in:
parent
216ccd62f7
commit
9cb6a2b614
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@ -28,14 +28,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: ljharb/actions/node/run@main
|
- uses: ljharb/actions/node/run@main
|
||||||
name: 'npm install && npm run dockerfile_lint'
|
name: 'npm install && npm run doctoc'
|
||||||
with:
|
with:
|
||||||
node-version: 'lts/*'
|
node-version: 'lts/*'
|
||||||
shell-command: |
|
command: "doctoc:check"
|
||||||
set -e
|
|
||||||
cp README.md README.md.orig
|
|
||||||
npm run doctoc
|
|
||||||
diff -q README.md README.md.orig
|
|
||||||
|
|
||||||
test_naming:
|
test_naming:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
"test/installation/iojs": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_iojs test-$shell",
|
"test/installation/iojs": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=installation_iojs test-$shell",
|
||||||
"test/sourcing": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=sourcing test-$shell",
|
"test/sourcing": "shell=$(basename -- $(ps -o comm= $(ps -o ppid= -p $PPID)) | sed 's/^-//'); make TEST_SUITE=sourcing test-$shell",
|
||||||
"doctoc": "doctoc --title='## Table of Contents' --github README.md",
|
"doctoc": "doctoc --title='## Table of Contents' --github README.md",
|
||||||
|
"predoctoc:check": "cp README.md v-README.md.orig && npm run doctoc",
|
||||||
|
"doctoc:check": "diff -q README.md v-README.md.orig",
|
||||||
|
"postdoctoc:check": "mv v-README.md.orig README.md",
|
||||||
"eclint": "eclint check $(git ls-tree --name-only HEAD | xargs)",
|
"eclint": "eclint check $(git ls-tree --name-only HEAD | xargs)",
|
||||||
"dockerfile_lint": "dockerfile_lint"
|
"dockerfile_lint": "dockerfile_lint"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user