Skip to content

Run full test suite in GitHub Actions with disposable test env#6

Closed
devarshishimpi wants to merge 1 commit into
mainfrom
bug/setup-codra-tests-in-github-actions
Closed

Run full test suite in GitHub Actions with disposable test env#6
devarshishimpi wants to merge 1 commit into
mainfrom
bug/setup-codra-tests-in-github-actions

Conversation

@devarshishimpi
Copy link
Copy Markdown
Owner

@devarshishimpi devarshishimpi commented May 15, 2026

Description

Sets up CI to run the full Codra test suite on PRs, pushes to main, and manual workflow dispatches.

Changes include:

  • Adds a Postgres service container for GitHub Actions test runs.
  • Runs migrations before Vitest through npm test.
  • Moves test env values out of test helpers and into env files / workflow env.
  • Adds .env.test.example for local test setup.
  • Updates .dev.vars.example to match the local .dev.vars env names.
  • Removes DB test skipping so all 56 tests run locally and in CI.
  • Trims CI env vars to only what the current tests actually require.
  • Increases Vitest timeout for slower DB-backed integration tests.

Closes #1

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Chore (refactoring, dependency updates, etc.)

How Has This Been Tested?

  • Unit Tests
  • Integration Tests
  • Manual Dashboard Verification
  • Manual GitHub Webhook Verification

Checklist:

  • I have starred Codra on GitHub
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • I have signed the CLA

@devarshishimpi devarshishimpi linked an issue May 15, 2026 that may be closed by this pull request
Copy link
Copy Markdown

@codra-app-personal codra-app-personal Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codra Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 42186fb1a6

ℹ️ About Codra in GitHub

Your team has set up Codra to review pull requests in this repo. Reviews are triggered when you:

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codra-app review"

If Codra has suggestions, it will comment; otherwise it will react with 👍.

Codra can also answer questions or update the PR. Try commenting "@codra-app address that feedback".

Comment thread .dev.vars.example
Comment thread .dev.vars.example
Comment thread .dev.vars.example
Comment thread .env.test.example
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