Skip to content

Move validate to check workflow#1112

Merged
razor-x merged 3 commits into
mainfrom
validate-on-check-workflow
May 20, 2026
Merged

Move validate to check workflow#1112
razor-x merged 3 commits into
mainfrom
validate-on-check-workflow

Conversation

@razor-x

@razor-x razor-x commented May 20, 2026

Copy link
Copy Markdown
Member

No description provided.

@razor-x razor-x requested a review from a team as a code owner May 20, 2026 20:14
@razor-x razor-x requested a review from louis-pre May 20, 2026 20:14
@louis-pre

Copy link
Copy Markdown
Member

Doesn't the check run before the generate right now?

@razor-x

razor-x commented May 20, 2026

Copy link
Copy Markdown
Member Author

Doesn't the check run before the generate right now?

It ran after. The validation errors were introduce on main, likely via gitbook? Anyway, it the check is not related to the generate action, it should pass for all commits like a linter would.

@louis-pre

Copy link
Copy Markdown
Member

Anyway, it the check is not related to the generate action, it should pass for all commits like a linter would.

It is though, at least if we link between API pages and guide pages

@razor-x

razor-x commented May 20, 2026

Copy link
Copy Markdown
Member Author

The model is that the check actions should run on top of a commit and pass/fail the commit. Think of codegen like an automated actor that pushes a commit which then still has to pass all the normal checks. Having validate run after generate breaks this model. The generate worked, but the commit it generated will be "linted" once it's pushed. Then it can be inspected using the normal diff view vs hidden inside the workflow's internal state.

razor-x and others added 2 commits May 20, 2026 13:54
The bare absolute-URL regex stopped only at whitespace, `)`, and `"`. When
a `docs.seam.co/latest/...` URL appeared as anchor text inside HTML
(e.g. `>https://docs.seam.co/latest/foo</a></td>`), the match greedily
swallowed the trailing tags and reported the malformed path as broken.

Adding `<` and `>` to the exclusion set lets the bare URL pattern
terminate at the closing `<`, so cross-section absolute URLs in the
guides README validate cleanly.
@razor-x razor-x force-pushed the validate-on-check-workflow branch from 41c5a0e to d9712b3 Compare May 20, 2026 20:54
@razor-x razor-x merged commit ae7748d into main May 20, 2026
10 checks passed
@razor-x razor-x deleted the validate-on-check-workflow branch May 20, 2026 21:21
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.

3 participants