Skip to content

CI/CD pipeline failing due to missing environment variables and MongoDB configuration #66

@therealob22a

Description

@therealob22a

Description

The current GitHub Actions CI/CD pipeline intended to test both the frontend and backend is not functioning correctly.

The pipeline fails because required environment variables are not set and the MongoDB configuration is missing or incomplete in the CI environment. As a result, backend tests cannot connect to the database and the overall workflow does not complete successfully.

Current Behavior

  • GitHub Actions workflow fails during test execution
  • Backend tests error out due to missing environment variables
  • MongoDB connection/configuration is not available in CI
  • Frontend and backend tests cannot reliably run in the pipeline

Expected Behavior

  • CI/CD pipeline should successfully run:

    • Frontend tests
    • Backend tests
  • Required environment variables should be properly injected into the workflow

  • MongoDB should be correctly configured (e.g. service container, connection string, credentials) for CI test runs

Tasks / Acceptance Criteria

  • Identify all required environment variables for frontend and backend tests
  • Configure environment variables in GitHub Actions (secrets and/or workflow env)
  • Set up MongoDB for CI (e.g. MongoDB service container or mock/test DB)
  • Ensure backend connects to MongoDB successfully during CI
  • Verify frontend and backend tests pass in the pipeline
  • Update documentation if needed to reflect CI requirements

Notes

This fix is required to restore reliable automated testing and prevent regressions from being merged without validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions