# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # FluidHelloWorld build for CI pr: - main - main-azure resources: repositories: - repository: m365Pipelines type: git name: 1ESPipelineTemplates/M365GPT ref: refs/tags/release extends: template: v1/M365.Unofficial.PipelineTemplate.yml@m365Pipelines parameters: pool: name: Small-eastus2 os: linux sdl: sourceAnalysisPool: name: Azure-Pipelines-1ESPT-ExDShared image: windows-2022 os: windows # Skip tagging if Github PR coming from a fork settings: skipBuildTagsForGitHubPullRequests: true customBuildTags: - ES365AIMigrationTooling stages: - stage: stage jobs: - job: job steps: - task: ComponentGovernanceComponentDetection@0 inputs: scanType: "Register" verbosity: "Verbose" alertWarningLevel: "High" - task: UseNode@1 displayName: Use Node 20.x inputs: version: 20.x - task: Npm@1 displayName: Install inputs: command: "custom" customCommand: "ci" - task: CmdLine@2 displayName: Build inputs: script: "npm run build" - task: CmdLine@2 displayName: Lint inputs: script: "npm run lint" - task: CmdLine@2 displayName: Test inputs: script: "npm run ci:test" - task: PublishTestResults@2 displayName: Publish Test Results inputs: testResultsFormat: "JUnit" testResultsFiles: "**/*junit-report.xml" searchFolder: "$(System.DefaultWorkingDirectory)" condition: succeededOrFailed()