Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect if new changes break existing links #793

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ jobs:
- run: yarn test
- run: ./build.sh
- run: yarn linkinator
- run: yarn integration
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ To build and preview Centrapay Docs using the static files that are deployed to
docker compose run script yarn build
docker compose run script yarn preview
```

## Integration Tests

```
docker compose run ruby-script bundle exec jekyll build
docker compose run script yarn build --mode development
docker compose run script yarn integration
```
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"test": "vitest --watch=false"
"test": "vitest --watch=false",
"integration": "cp -r dist/* _site/ && vitest --watch=false --config vitest.integration.config.js"
},
"devDependencies": {
"@astrojs/markdoc": "^0.5.1",
Expand All @@ -33,6 +34,7 @@
"linkinator": "^5.0.2",
"mdast-util-to-string": "^3.1.1",
"mermaid": "^9.3.0",
"path": "^0.12.7",
"remark-html": "^15.0.2",
"remark-parse": "^10.0.1",
"remark-sectionize": "^1.1.1",
Expand All @@ -41,6 +43,7 @@
"unist-util-find-after": "^4.0.1",
"unist-util-visit": "^4.1.2",
"vitest": "^0.28.3",
"vue": "^3.2.47"
"vue": "^3.2.47",
"jsdom": "^22.1.0"
}
}
Loading
Loading