Skip to content

ci: vitest contract tests, ci workflow, status badges#27

Merged
cipher813 merged 1 commit into
mainfrom
feat/ci-tests-badges
Jun 13, 2026
Merged

ci: vitest contract tests, ci workflow, status badges#27
cipher813 merged 1 commit into
mainfrom
feat/ci-tests-badges

Conversation

@cipher813

Copy link
Copy Markdown
Owner

what

  • src/data/releases.test.ts — consumer-side contract tests (29) for the generated releases.json + links.ts:
    • releaseAt is ISO-8601 with explicit offset and parses
    • href is a hyperfollow link carrying ?ref=release attribution
    • slug(title) == hyperfollow slug — guards funnel attribution (the data-release stamp must match the ops release_id)
    • cover URL shape (/covers/*.webp or remote https), uniqueness, lowercase voice
  • .github/workflows/ci.ymlastro checkvitest runastro build on every push/PR
  • vite@^6 pinned as devDep — vitest otherwise hoists vite 7 next to astro's vite 6 and astro check fails on a tailwind-plugin type skew (verified: main is clean, the skew only appears with two vite copies)
  • README — ci / license / astro badges in the dev section (artist-facing top untouched) + test commands

verification

Local: astro check 0 errors · 29/29 tests pass · build complete.

🤖 Generated with Claude Code

- src/data/releases.test.ts: consumer-side contract tests for the
  generated releases.json (ISO releaseAt, hyperfollow href + ?ref=release,
  slug(title) == hyperfollow slug so funnel attribution can't silently
  break, cover URL shape, uniqueness) + links.ts platform stack checks
- .github/workflows/ci.yml: astro check -> vitest -> astro build on
  every push/PR
- pin vite@^6 as a devDep so vitest and astro share one vite (vitest
  otherwise hoists vite 7 and astro check fails on the tailwind plugin
  type skew)
- README: ci/license/astro badges + dev docs for the test commands

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cipher813 cipher813 merged commit 9d58712 into main Jun 13, 2026
2 checks passed
@cipher813 cipher813 deleted the feat/ci-tests-badges branch June 13, 2026 00:46
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.

1 participant