Skip to content

Commit cca510c

Browse files
committed
fix: Run linkchecker in CI
1 parent b27788f commit cca510c

File tree

5 files changed

+60
-5
lines changed

5 files changed

+60
-5
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,18 @@ jobs:
6666
- run: yarn install
6767
- name: Run Tests
6868
run: yarn build:test
69+
70+
job_linkcheck:
71+
name: Test (Linkchecker)
72+
name: job_build
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v2
76+
- uses: volta-cli/action@v1
77+
- uses: actions/cache@v2
78+
with:
79+
path: ${{ github.workspace }}/node_modules
80+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
81+
- run: yarn install
82+
- name: Run Checker
83+
run: yarn linkcheck

.linksrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"allowedProtocols": []
3+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@
8686
"prettier:fix:all": "prettier --write \"./{src,plugins}/**/*.{md,mdx,js,jsx}\"",
8787
"start": "npm run develop",
8888
"format": "prettier --write \"src/**/*.js\"",
89-
"test": "jest"
89+
"test": "jest",
90+
"linkcheck": "broken-links-checker --path public/ --baseUrl http://127.0.0.1:3000/"
9091
},
9192
"devDependencies": {
93+
"@hashicorp/broken-links-checker": "^1.2.10",
9294
"@testing-library/jest-dom": "^5.11.4",
9395
"@testing-library/react": "^10.4.9",
9496
"@testing-library/react-hooks": "^3.4.1",

src/platforms/common/enriching-error-data/additional-data/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ If Sentry captures some predefined data but doesn’t expose it as a tag, you ca
3333

3434
`level`
3535

36-
: Defines the severity of an event. The level can be set to one of five values, which are, in order of severity: `fatal`, `error`, `warning`, `info`, and `debug.error`. Learn how to set the level in [Set the Level](#set-the-level)
36+
: Defines the severity of an event. The level can be set to one of five values, which are, in order of severity: `fatal`, `error`, `warning`, `info`, and `debug.error`. Learn how to set the level in [Set the Level](./set-level/)
3737

3838
`user`
3939

4040
: Providing user information to Sentry helps you evaluate the number of users affecting an issue and evaluate the quality of the application. Learn how to capture user information in Capture the User
4141

4242
`fingerprint`
4343

44-
: Sentry uses one or more fingerprints to determine how to group errors into issues. Learn more about Sentry's approach to grouping algorithms in [Grouping Events into Issues](/data-management/event-grouping/). Learn how to override the default group in very advanced use cases in [Modify the Default Fingerprint](#modify-the-default-fingerprint)
44+
: Sentry uses one or more fingerprints to determine how to group errors into issues. Learn more about Sentry's approach to grouping algorithms in [Grouping Events into Issues](../../data-management/event-grouping/). Learn how to override the default group in very advanced use cases in [Modify the Default Fingerprint](../../data-management/event-grouping/sdk-fingerprinting/)
4545

4646
`environment`
4747

yarn.lock

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,19 @@
12951295
dependencies:
12961296
"@hapi/hoek" "^8.3.0"
12971297

1298+
"@hashicorp/broken-links-checker@^1.2.10":
1299+
version "1.2.10"
1300+
resolved "https://registry.yarnpkg.com/@hashicorp/broken-links-checker/-/broken-links-checker-1.2.10.tgz#66988f519d7f461571b66ca7290f3ed870c6f592"
1301+
integrity sha512-RDFI928UqJDotEGv8KtynB1dJn9AY4OBYEBrrYdZi3vcxHUatIi8UGkuiXo3Qcv58xEK/8pjMTF6D25ylBIi5w==
1302+
dependencies:
1303+
bluebird "^3.5.4"
1304+
cheerio "^1.0.0-rc.3"
1305+
glob "^7.1.3"
1306+
node-fetch "^2.3.0"
1307+
path-to-regexp "^3.0.0"
1308+
pretty-ms "^4.0.0"
1309+
yargs "^13.2.2"
1310+
12981311
"@istanbuljs/load-nyc-config@^1.0.0":
12991312
version "1.1.0"
13001313
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced"
@@ -4196,7 +4209,7 @@ block-stream@*:
41964209
dependencies:
41974210
inherits "~2.0.0"
41984211

4199-
bluebird@^3.0.5, bluebird@^3.5.0, bluebird@^3.5.5, bluebird@^3.7.2:
4212+
bluebird@^3.0.5, bluebird@^3.5.0, bluebird@^3.5.4, bluebird@^3.5.5, bluebird@^3.7.2:
42004213
version "3.7.2"
42014214
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
42024215
integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==
@@ -12673,6 +12686,11 @@ node-fetch@^1.0.1:
1267312686
encoding "^0.1.11"
1267412687
is-stream "^1.0.1"
1267512688

12689+
node-fetch@^2.3.0:
12690+
version "2.6.1"
12691+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
12692+
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
12693+
1267612694
1267712695
version "0.9.0"
1267812696
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.9.0.tgz#d624050edbb44874adca12bb9a52ec63cb782579"
@@ -13504,6 +13522,11 @@ parse-latin@^4.0.0:
1350413522
unist-util-modify-children "^1.0.0"
1350513523
unist-util-visit-children "^1.0.0"
1350613524

13525+
parse-ms@^2.0.0:
13526+
version "2.1.0"
13527+
resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-2.1.0.tgz#348565a753d4391fa524029956b172cb7753097d"
13528+
integrity sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==
13529+
1350713530
parse-numeric-range@^0.0.2:
1350813531
version "0.0.2"
1350913532
resolved "https://registry.yarnpkg.com/parse-numeric-range/-/parse-numeric-range-0.0.2.tgz#b4f09d413c7adbcd987f6e9233c7b4b210c938e4"
@@ -13671,6 +13694,11 @@ [email protected]:
1367113694
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
1367213695
integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=
1367313696

13697+
path-to-regexp@^3.0.0:
13698+
version "3.2.0"
13699+
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-3.2.0.tgz#fa7877ecbc495c601907562222453c43cc204a5f"
13700+
integrity sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA==
13701+
1367413702
path-type@^1.0.0:
1367513703
version "1.1.0"
1367613704
resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441"
@@ -14290,6 +14318,13 @@ pretty-format@^26.4.2:
1429014318
ansi-styles "^4.0.0"
1429114319
react-is "^16.12.0"
1429214320

14321+
pretty-ms@^4.0.0:
14322+
version "4.0.0"
14323+
resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-4.0.0.tgz#31baf41b94fd02227098aaa03bd62608eb0d6e92"
14324+
integrity sha512-qG66ahoLCwpLXD09ZPHSCbUWYTqdosB7SMP4OffgTgL2PBKXMuUsrk5Bwg8q4qPkjTXsKBMr+YK3Ltd/6F9s/Q==
14325+
dependencies:
14326+
parse-ms "^2.0.0"
14327+
1429314328
prismjs@^1.20.0:
1429414329
version "1.21.0"
1429514330
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.21.0.tgz#36c086ec36b45319ec4218ee164c110f9fc015a3"
@@ -18954,7 +18989,7 @@ yargs@^11.1.0:
1895418989
y18n "^3.2.1"
1895518990
yargs-parser "^9.0.2"
1895618991

18957-
yargs@^13.3.0, yargs@^13.3.2:
18992+
yargs@^13.2.2, yargs@^13.3.0, yargs@^13.3.2:
1895818993
version "13.3.2"
1895918994
resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd"
1896018995
integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==

0 commit comments

Comments
 (0)