Skip to content

Commit 0c8cd4b

Browse files
authoredDec 7, 2020
build: use linkinator to scan own README (#205)
1 parent 8d8472a commit 0c8cd4b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

‎.github/workflows/ci.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ jobs:
3636
node-version: 12
3737
- run: npm install
3838
- run: npm run lint
39+
docs:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions/setup-node@v1
44+
with:
45+
node-version: 12
46+
- run: npm install
47+
- run: npm run docs-test
3948
coverage:
4049
runs-on: ubuntu-latest
4150
steps:

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"fix": "gts fix",
1818
"codecov": "c8 report --reporter=json && codecov -f coverage/*.json",
1919
"lint": "gts lint",
20-
"build-binaries": "pkg . --out-path build/binaries"
20+
"build-binaries": "pkg . --out-path build/binaries",
21+
"docs-test": "npm link && linkinator ./README.md"
2122
},
2223
"dependencies": {
2324
"chalk": "^4.0.0",

0 commit comments

Comments
 (0)
Please sign in to comment.