Add CI workflow for linting, type checking, and testing - #3
Merged
Conversation
Adds .github/workflows/ci.yml with four jobs that run on every pull request and push to main: - lint: Biome lint & format check (pnpm lint) - type-check: TypeScript strict type check (tsc --noEmit) - test-unit: Vitest unit tests (pnpm test:unit) - test-integration: Vitest integration tests (pnpm test:integration), conditional on DATABASE_URL secret being configured (requires a Neon PostgreSQL URL since the app uses @neondatabase/serverless) Concurrent runs for the same ref are cancelled to avoid redundant CI usage. https://claude.ai/code/session_0179RDnpCGY9iMg6yR5QBFFK
- actions/checkout: v4 → v6 (latest: v6.0.2) - actions/setup-node: v4 → v6 (latest: v6.2.0) - pnpm/action-setup: already at latest (v4, v4.2.0) https://claude.ai/code/session_0179RDnpCGY9iMg6yR5QBFFK
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive CI/CD pipeline using GitHub Actions to automate code quality checks and testing on every push and pull request to the main branch.
Key Changes
pnpm linttsc --noEmitpnpm test:unitDATABASE_URLsecret)@neondatabase/serverlessfor HTTP-based database accessImplementation Details
DATABASE_URLsecret check to prevent failures in forksubuntu-latestwith dependency caching for faster executionhttps://claude.ai/code/session_0179RDnpCGY9iMg6yR5QBFFK