Skip to content

[DevOps] Automated CI Pipeline Integration for Azure DevOps #174

Description

@AlAfiz

Description: Create a comprehensive CI pipeline configuration (azure-pipelines.yml) to automatically lint, test, and build the backend API on every Pull Request.
Context / Motivation: We must maintain a strict quality gate. Automating test execution guarantees that external GrantFox PRs do not break the API build before maintainers merge them into the main branch.
Acceptance Criteria: - [ ] Define the pipeline stages: Lint, Test, and Build.

  • Configure the pipeline to run eslint and prettier checks.
  • Execute the Jest test suite and generate a code coverage report.
  • Ensure the pipeline fails and blocks the PR if any stage fails or if test coverage drops below 80%.
    Technical Pointers: Optimize the pipeline duration by caching the npm or yarn dependency directories between runs. Use a Node.js toolchain task to enforce the correct runtime version across all build agents.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions