Skip to content

Commit 978601e

Browse files
committed
ci: only run in 12.x and 14.x nodejs versions
1 parent cce54ee commit 978601e

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [10.x, 12.x, 14.x]
17+
node-version: [12.x, 14.x]
1818

1919
steps:
2020
- uses: 'actions/checkout@v2'
@@ -26,6 +26,7 @@ jobs:
2626

2727
- run: 'npm ci'
2828
- run: 'npm run lint'
29+
- run: 'npm run markdownlint'
2930
- run: 'npm run build'
3031
- run: 'DISABLE_LOGGING=1 npm run cover'
3132
- run: 'npx nyc report --reporter=lcov > coverage.lcov && npx codecov'

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
npm run lint
5+
npm run markdownlint

.markdownlint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"default": true,
3-
"MD013": false
3+
"MD013": false,
4+
"MD024": false
45
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"build": "tsc",
77
"test": "mocha test/**/*.spec.ts",
88
"cover": "nyc mocha test/**/*.spec.ts",
9-
"lint": "tslint -c tslint.json --project tsconfig.json && npm run markdownlint",
9+
"lint": "tslint -c tslint.json --project tsconfig.json",
1010
"markdownlint": "markdownlint '**/*.md' --ignore node_modules",
11-
"release": "release-it --ci",
11+
"release": "release-it",
1212
"postinstall": "husky install",
1313
"prepublishOnly": "pinst --disable && npm run build",
1414
"postpublish": "pinst --enable"
@@ -56,6 +56,7 @@
5656
"hooks": {
5757
"before:init": [
5858
"npm run lint",
59+
"npm run markdownlint",
5960
"npm run build",
6061
"npm run test"
6162
]

0 commit comments

Comments
 (0)