Skip to content

ci: add astro check, GHA workflow, and pre-commit hook#87

Merged
julpayne merged 2 commits into
eval-hub:mainfrom
ruivieira:feat/ci-docs
Jul 3, 2026
Merged

ci: add astro check, GHA workflow, and pre-commit hook#87
julpayne merged 2 commits into
eval-hub:mainfrom
ruivieira:feat/ci-docs

Conversation

@ruivieira

Copy link
Copy Markdown
Member

What and why

Adds type-checking and build validation to the repo so errors are caught before merge. Closes no issue — quality infrastructure work.

Type

  • ci

Changes

  • .github/workflows/ci.yml — new CI job that runs astro check then astro build on all PRs and non-main pushes
  • package.json — adds check script (astro check); adds @astrojs/check and typescript as dev deps
    • src/env.d.ts — declares virtual modules (virtual:starlight-blog/config, virtual:@pasqal-io/starlight-client-mermaid) and extends Window with __mermaidClassName
  • src/components/ProviderCatalog.astro — removes dead selectedId variable; adds non-null assertions on providerId inside the closure where the outer guard already guarantees it is defined
  • .pre-commit-config.yaml — local pre-commit hook running npm run check

Testing

  • npm run check passes with 0 errors locally
  • CI verified on this PR

Signed-off-by: Rui Vieira <ruidevieira@googlemail.com>
@ruivieira ruivieira self-assigned this Jul 3, 2026
@ruivieira ruivieira added the kind/test Categorizes issue as testing improvement label Jul 3, 2026
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ruivieira, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 059c7b54-bfa0-4679-a97a-3835994b0d6e

📥 Commits

Reviewing files that changed from the base of the PR and between 54f83db and 37a2823.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • .github/workflows/ci.yml
  • .pre-commit-config.yaml
  • package.json
  • src/components/MarkdownContent.astro
  • src/components/ProviderCatalog.astro
  • src/env.d.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Rui Vieira <ruidevieira@googlemail.com>

@julpayne julpayne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (maybe there is a duplicate file with the other PR?)

@julpayne julpayne merged commit 0bb8374 into eval-hub:main Jul 3, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in EvalHub Planning Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test Categorizes issue as testing improvement

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants