-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Run sync as part of astro check
#5823
Conversation
🦋 Changeset detectedLatest commit: f20e515 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a minor
changeset. A reviewer will merge this at the next release if approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a minor
changeset. A reviewer will merge this at the next release if approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we do this already on dev
and build
, might as well. If it ever becomes a problem, we could have a --no-sync
flag or something similar. +1 from the astro check
end of things!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment but this PR check
s out. Also +1 to Erika's comment on adding a --no-sync
or --skip-sync
flag if users request it
Co-authored-by: Ben Holmes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a minor
changeset. A reviewer will merge this at the next release if approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a minor
changeset. A reviewer will merge this at the next release if approved.
Shhh… we’re in prerelease mode
Changes
Sites using content collections will usually need their generated types for
astro check
to pass. This PR runs thesync
command at the start of the check script to avoid users needing to always doastro sync && astro check
(especially in CI where generated types are less likely to already be present).@bholmesdev Is
astro sync
a safe no-op if no content collections are configured?For context: this is already an issue for #5765 where
astro check
is failing in our CI because content types aren’t generated. The other approach would be to only fix this in our CI script but given other users might run into this, I thought this combo would make most sense.Testing
No additional testing just yet. Running
pnpm test:match "check"
passes but only shows two relevant tests currently.Docs
No docs needed I don’t think?