You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Azure Pipelines is the CI/CD engine within Azure DevOps. It automates the process of building, testing, and deploying your applications to any platform, cloud, or on-premises environment. With YAML-based pipeline definitions, your CI/CD configuration lives alongside your code, making it version-controlled, reviewable, and repeatable.
CI is the practice of automatically building and testing code every time a developer pushes changes. The goal is to catch issues early and maintain a deployable codebase.
# azure-pipelines.yml
trigger:
branches:
include:
- main
- feature/*
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
displayName: 'Install Node.js'
- script: npm ci
displayName: 'Install dependencies'
- script: npm run lint
displayName: 'Run linter'
- script: npm test -- --coverage
displayName: 'Run tests'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/junit.xml'
displayName: 'Publish test results'
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.