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.

Metadata

Metadata

Assignees

Labels

DevopsGrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaignhelp wantedExtra attention is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions