content linter npm script (#43038)
This commit is contained in:
2
.github/workflows/content-lint-markdown.yml
vendored
2
.github/workflows/content-lint-markdown.yml
vendored
@@ -38,4 +38,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Run content linter if changed content/data files
|
- name: Run content linter if changed content/data files
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: node src/content-linter/scripts/markdownlint.js --errors-only --paths ${{ steps.changed-files.outputs.all_changed_files }}
|
run: npm run lint-content -- --errors-only --paths ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
id: linting-content-data
|
id: linting-content-data
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: node src/content-linter/scripts/markdownlint.js --errors-only --paths content data --output-file /tmp/error-lints.json
|
run: npm run lint-content -- --errors-only --paths content data --output-file /tmp/error-lints.json
|
||||||
|
|
||||||
- name: Open issue in docs-content
|
- name: Open issue in docs-content
|
||||||
if: ${{ always() && steps.linting-content-data.outcome == 'failure' }}
|
if: ${{ always() && steps.linting-content-data.outcome == 'failure' }}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"fixture-test": "cross-env ROOT=tests/fixtures npm test -- tests/rendering-fixtures",
|
"fixture-test": "cross-env ROOT=tests/fixtures npm test -- tests/rendering-fixtures",
|
||||||
"index-test-fixtures": "node src/search/scripts/index-elasticsearch.js -l en -l ja -V ghae -V dotcom --index-prefix tests -- src/search/tests/fixtures/search-indexes",
|
"index-test-fixtures": "node src/search/scripts/index-elasticsearch.js -l en -l ja -V ghae -V dotcom --index-prefix tests -- src/search/tests/fixtures/search-indexes",
|
||||||
"lint": "eslint '**/*.{js,mjs,ts,tsx}'",
|
"lint": "eslint '**/*.{js,mjs,ts,tsx}'",
|
||||||
"lint-content": "src/content-linter/scripts/markdownlint.js",
|
"lint-content": "src/content-linter/scripts/lint-content.js",
|
||||||
"lint-translation": "cross-env NODE_OPTIONS=--experimental-vm-modules jest src/content-linter/tests/lint-files.js",
|
"lint-translation": "cross-env NODE_OPTIONS=--experimental-vm-modules jest src/content-linter/tests/lint-files.js",
|
||||||
"openapi-docs": "src/rest/docs.js",
|
"openapi-docs": "src/rest/docs.js",
|
||||||
"playwright-test": "playwright test --project=\"Google Chrome\"",
|
"playwright-test": "playwright test --project=\"Google Chrome\"",
|
||||||
|
|||||||
Reference in New Issue
Block a user