Skip to content

Add a CI workflow for lint, typecheck, and build #8

Description

@Abioladory123

Context

This repo has no .github/workflows/ directory, so nothing runs on push or PR. novatip-contracts already has a ci.yml to model this on.

Several of the bugs currently open here — a .ts import specifier that only breaks in a built run, an undeclared dotenv dependency, a dependency name that 404s on the registry — would all have been caught by a clean-install-and-build job.

What to do

Add .github/workflows/ci.yml running on push and pull request:

  • npm ci on Node 18 and 20 (matching the engines field)
  • npm run lint
  • npm run typecheck
  • npx prisma generate before typecheck, since the Prisma client is generated
  • npm run build

npm run test currently has no test files; wire it in once tests exist, or add it now with a placeholder that doesn't fail the job.

Acceptance criteria

  • Workflow runs on push and PR to main
  • Uses npm ci against the lockfile, not npm install
  • Branch protection on main requires the check (repo admin follow-up)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions