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

Always load all MD files to check for images #500

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

timothymcmackin
Copy link
Collaborator

The image test is failing when combined with the checkChangedFiles action. The getAllUsedImages function needs to get all images in all MD files, not just the MD files that were changed in the PR.

To test, check out the main branch and check for missing images in only one file with this command. It returns errors about unused images:

npm run test -- --filesToCheck=docs/architecture.md

Then load this branch, run the same command, and see that the test passes.

@timothymcmackin timothymcmackin self-assigned this Jan 2, 2025
Copy link

vercel bot commented Jan 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-staging ✅ Ready (Inspect) Visit Preview Jan 2, 2025 6:29pm

@timothymcmackin timothymcmackin merged commit 6e8d294 into main Jan 7, 2025
3 checks passed
@timothymcmackin timothymcmackin deleted the fix-test-for-changed-files branch January 7, 2025 16:07
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