Skip to content

Add CI workflow for API, web and mobile - #2

Merged
YarinQuapi merged 1 commit into
masterfrom
add-ci-workflow
Nov 9, 2026
Merged

YarinQuapi merged 1 commit into
masterfrom
add-ci-workflow

Conversation

@YarinQuapi

Copy link
Copy Markdown
Owner

What changed

Adds .github/workflows/ci.yml. Until now the repo had no checks on pull requests; the only workflow was the deploy in publish-api.yml, which runs the API tests after a push to master.

The new workflow runs on every pull request, on pushes to master, and on demand, with three jobs in parallel:

Job Steps
API Generate the Prisma client, tsc --noEmit, npm test
Web npm run build -w @drop-it/web (typecheck and Vite build)
Mobile flutter pub get, flutter analyze --no-fatal-infos, flutter test

Notes for reviewers

  • It uses the same Node 22 setup, action versions and Prisma environment variables as publish-api.yml, and pins Flutter to 3.47.6 (the local version).
  • flutter analyze uses --no-fatal-infos because the app has 5 existing style notes (curly braces, initializing formals). Errors and warnings still fail the job.
  • A newer push to the same PR cancels the older run.
  • Deployment is unchanged and stays in publish-api.yml.
  • Test coverage is still thin: the API tests cover logic but not the routes, and the mobile app has one test.

Testing

I ran every step locally on master plus this change: API typecheck passes and 43/43 tests pass, the web build passes, and flutter analyze and flutter test pass (1/1). This PR's own run is the first time it runs on GitHub.

🤖 Generated with Claude Code

Runs on every pull request, on pushes to master, and on demand:
- API: generate the Prisma client, typecheck, run tests
- Web: typecheck and build
- Mobile: flutter analyze (style infos reported, not fatal) and flutter test

Uses the same Node and action versions as publish-api.yml, pins Flutter
3.47.6, and cancels runs made obsolete by a newer push. Deployment stays
in publish-api.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@YarinQuapi
YarinQuapi merged commit 85987ee into master Nov 9, 2026
3 checks passed
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