Skip to content

fix(ci): make weekly tests pass without Jekyll build artifacts#15

Merged
VatsalSy merged 1 commit intomainfrom
Worthington/fix-weekly-tests-site-check
Mar 1, 2026
Merged

fix(ci): make weekly tests pass without Jekyll build artifacts#15
VatsalSy merged 1 commit intomainfrom
Worthington/fix-weekly-tests-site-check

Conversation

@comphy-bot
Copy link
Member

@comphy-bot comphy-bot commented Mar 1, 2026

What this fixes

Weekly Tests was failing in npm test because scripts/simple-test.js required _site/ to exist, but the weekly workflow runs on a fresh checkout and does not run a Jekyll build.

After fixing that assertion, lint would still fail on bundled vendor code in assets/js/mathjax/tex-svg.js (minified third-party file not suitable for repo lint rules).

Changes

  • make _site optional in scripts/simple-test.js for source-only CI runs
  • keep assets/js/search_db.json check in place
  • update lint:js script to ignore assets/js/mathjax/** and suppress ignore warnings

Validation

  • npm test
  • npm run lint

This is a minimal CI-targeted fix; deployment behavior is unchanged.

- make _site optional in simple-test.js for CI runs that do not build Jekyll
- exclude bundled MathJax asset from JS lint to avoid false failures
@VatsalSy VatsalSy merged commit aadf0bd into main Mar 1, 2026
3 checks passed
@VatsalSy VatsalSy deleted the Worthington/fix-weekly-tests-site-check branch March 1, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants