Skip to content

Commit c0f6d92

Browse files
authored
ci: scan for broken links (#14)
1 parent 0ef7ee5 commit c0f6d92

File tree

147 files changed

+1288
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+1288
-57
lines changed

.github/workflows/website-cd.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env:
2323

2424
jobs:
2525
build:
26-
name: Build website
26+
name: Build and verify website
2727
runs-on: ubuntu-latest
2828

2929
steps:
@@ -39,6 +39,9 @@ jobs:
3939
- name: Build website
4040
run: yarn build
4141

42+
- name: Scan for broken links
43+
run: yarn dlx start-server-and-test serve 3000 'yarn broken-link-checker | (! grep ─BROKEN─)'
44+
4245
- name: Upload website package
4346
uses: actions/upload-artifact@v3
4447
with:
@@ -63,7 +66,7 @@ jobs:
6366
name: ${{ env.WEBSITE_PACKAGE_NAME }}
6467
path: ${{ env.WEBSITE_PACKAGE_PATH }}
6568

66-
- name: Deploy app to GitHub Pages
69+
- name: Deploy website to GitHub Pages
6770
uses: peaceiris/actions-gh-pages@v3
6871
with:
6972
github_token: ${{ secrets.GITHUB_TOKEN }}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/decision-makers/which-test-frameworks-can-i-use-for-angular-projects.md

-1
+4-2

docs/frameworks-and-libraries/jest.md

+2-1

docs/frameworks-and-libraries/migrate-from-angularjs-to-angular.md

+3-1

docs/frameworks-and-libraries/slimerjs.md

-5
This file was deleted.
+3-2
+2-1
+5-1

docs/fundamentals/angular-dependencies.md

+3-3

docs/fundamentals/angular-modules.md

+3-1

docs/fundamentals/the-angular-httpclient-and-interceptors.md

+2-2

docs/software-architecture/reactive-programming.md

+29-10

docs/testing/test-driven-development-tdd.md

+3-1

docs/testing/types-of-software-testing.md

+1-1

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
"serve": "docusaurus serve",
1414
"write-translations": "docusaurus write-translations",
1515
"write-heading-ids": "docusaurus write-heading-ids",
16-
"typecheck": "tsc"
16+
"typecheck": "tsc",
17+
"broken-link-checker": "blc http://localhost:3000/angular-guides/ --recursive --ordered --exclude https://twitter.com/Thisis_Angular --exclude https://twitter.com/Thisis_Learning --exclude 'https://github.com/this-is-angular/angular-guides/edit/main/*' --exclude 'https://ngrx.io/*' --exclude 'https://angularplayground.it/*' --exclude 'https://docs.devexpress.com/*' --exclude 'https://www.softwaretestinghelp.com/*'"
1718
},
1819
"dependencies": {
1920
"@algolia/client-search": "^4.13.0",
2021
"@docusaurus/core": "2.0.0-beta.21",
2122
"@docusaurus/preset-classic": "2.0.0-beta.21",
2223
"@mdx-js/react": "^1.6.22",
24+
"broken-link-checker": "^0.7.8",
2325
"clsx": "^1.1.1",
2426
"docusaurus-plugin-goatcounter": "^1.0.2",
2527
"prism-react-renderer": "^1.3.1",
@@ -29,6 +31,7 @@
2931
"devDependencies": {
3032
"@docusaurus/module-type-aliases": "2.0.0-beta.21",
3133
"@tsconfig/docusaurus": "^1.0.5",
34+
"start-server-and-test": "^1.14.0",
3235
"typescript": "^4.6.4"
3336
},
3437
"engines": {

0 commit comments

Comments
 (0)