Repository navigation
Update npm dependencies and add site regression tests - #953
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the dependency and build-configuration updates.
No open issues 🎉
What changed in this PR
Updates the Eleventy site’s dependencies and build configuration, and adds regression tests to check that generated pages retain their expected content and behavior.
Changes:
- Upgrades dependencies, replaces
uglify-eswithuglify-js, and adapts heading links and HTML minification to updated APIs. - Requires Node.js 22.22.0 or later and runs tests and builds on pull requests, with deployment restricted to pushes.
- Adds site regression tests and updates contributor setup instructions.
| File | Description |
|---|---|
test/site.test.js |
Adds build-output checks for navigation, scripts, highlighting, translations, assets, heading links, and the sitemap. |
package.json |
Updates dependencies, removes the obsolete axios resolution, and declares the test command and Node.js requirement. |
config/eleventy.config.js |
Adapts JavaScript minification, heading permalinks, and asynchronous HTML minification. |
.github/workflows/gh-pages-build.yml |
Updates the runner and Node.js setup, adds pull-request validation, and limits deployment to pushes. |
.github/CONTRIBUTING.md |
Documents the Node.js requirement, reproducible installation, and regression test command. |
Review effort: Balanced
…egexp' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
uglify-eswithuglify-js.The site comparison showed minor equivalent minified JavaScript and HTML quote/whitespace changes. The upgraded contributor generator also changes avatar markup when next run; generated contributor files are not changed in this PR.
Type of change
Validation
npm ci,npm test, andnpm run buildon Node 22.22.0npm outdatedandnpm audit(no outdated direct dependencies or reported vulnerabilities)Checklist