feat: CI badge, e2e CI docs, husky/lint-staged, seed script - #364
Merged
EmmanuelOchaje merged 1 commit intoSep 26, 2026
Merged
EmmanuelOchaje merged 1 commit into
EmmanuelOchaje merged 1 commit into
Conversation
- StellarTickets#199: add CI badge to README pointing to ci.yml workflow - StellarTickets#201: document e2e CI job (Postgres service + migrate deploy) in docs/TESTING.md - StellarTickets#203: add husky + lint-staged pre-commit hook (eslint --fix + prettier on staged .ts files); document in CONTRIBUTING.md; wire prepare script - StellarTickets#205: add prisma/seed.ts (idempotent: users, org, event, ticket types); document npm run db:seed and db:reset in README and docs/TESTING.md Closes StellarTickets#199, StellarTickets#201, StellarTickets#203, StellarTickets#205
|
@jajafwangshak86-ops Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
✅ Deploy Preview for stellarticketsbackend ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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
Closes #199
Closes #201
Closes #203
Closes #205
#199 — Add GitHub Actions CI badge to README
Added the CI badge to the top of
README.mdpointing at.github/workflows/ci.yml. The workflow already existed with lint, unit test, build, e2e, docker-build, migration-lint, and docs-check jobs; this adds the badge as required by the acceptance criteria.#201 — Document e2e CI job in docs/TESTING.md
Rewrote
docs/TESTING.mdto cover both the unit-test suite and the e2e suite. Added a dedicated E2E in CI section describing thee2e-testjob inci.yml: the Postgres service container,prisma migrate deploy, and when it runs (every PR targetingmain).#203 — Add pre-commit hooks with husky + lint-staged
husky@9.1.7andlint-staged@15.5.2as dev dependencies.preparescript sonpm installinstalls the hook automatically..husky/pre-commitrunslint-stagedon every commit.lint-stagedconfig inpackage.jsonapplieseslint --fixthenprettier --writeto staged*.tsfiles.--no-verify) inCONTRIBUTING.md.#205 — Add seed script for local development
prisma/seed.ts— idempotent (all resources are upserted on natural unique keys).alice@example.comattendee,organiser@example.comorganiser, bothPassword123!), one organisation (Stellar Events Demo), one draft event (StellarFest 2027), and two ticket types (General Admission + VIP).prisma.seedwas already wired inpackage.json;npm run db:seedandnpm run db:resetwork out of the box.README.md(Getting started section) and indocs/TESTING.md.Testing
prisma/seed.tswas validated by dry-reading the schema — all models and enum values matchprisma/schema.prisma..husky/pre-commitandlint-stagedconfig present inpackage.json.npm installran cleanly with both new dev dependencies.