CI - Unit & Integration#125
Open
JoanMVPopov wants to merge 17 commits intomainfrom
Open
Conversation
Coverage Report for Unit
File CoverageNo changed files found. |
Coverage Report for Integration
File CoverageNo changed files found. |
zakrok
approved these changes
May 8, 2026
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.
This PR aims to bring the Unit & Integration up to speed with the current state of the repo. It does not add new features, nor does it add any tests. It is purely for DevOps purposes. See the info below:
What's in this PR
Workflow -
.github/workflows/ci.ymlpull_requesttomainUnit & Integration Tests(ubuntu-latest, 10-min timeout).nvmrc(22)npm ci→npm run test:unit→npm run test:integration→ upload coverage artifacts → post coverage PR commentscancel-in-progressconcurrency per PRcontents: read+pull-requests: writeIntegration test infrastructure
cicd/docker-compose.ci.yml- Supabase subset (db, kong, supavisor, auth, analytics, rest, storage, minio, imgproxy). DB usestmpfsfor speed.cicd/.env.ci- throwaway dev credentials for the compose file (safe to commit)cicd/.env.app.ci— app runtime env (DATABASE_URL, SUPABASE URLs, etc.). Loaded into$GITHUB_ENVby the workflow so both unit and integration steps inherit itscripts/run-integration.sh- brings the stack up, waits for health, exports app env, builds + previews the app, runs vitest, tears down (runs cleanup even on test failure)Vitest configs
vitest.config.unit.tsandvitest.config.integration.tsreports/coverage/unitandreports/coverage/integrationtext,html,json-summary,json+reportOnFailure: truegithub-actionsreporter gated onGITHUB_ACTIONSenv (inline annotations + job summary)retry: 2on integration tests onlyCoverage reporting
coverage-unit,coverage-integration)davelosert/vitest-coverage-report-actionposts a summary comment on the PR for each suiteNot in this PR (follow-ups)
How to verify