# Azure Pipelines — React Native (JS CI) # https://learn.microsoft.com/azure/devops/pipelines/yaml-schema # # If jobs never leave "Queued" or use Microsoft-hosted agents instead of your machine: # 1) Pipelines → select this pipeline → Edit → three dots → Triggers → YAML → path must be this file (or move/copy to azure-pipelines.yml and point the pipeline there). # 2) Project Settings → Agent pools → PerformicsCICD → Security → grant this pipeline access (or "Grant access permission to all pipelines"). # # Run on every push directly to main (and when merging into main via PR). name: PerformicsDevOps-$(Date:yyyyMMdd)$(Rev:.r) trigger: branches: include: - main pr: branches: include: - main variables: NODE_VERSION: '22.x' # Pool at pipeline scope so every job uses the self-hosted pool (matches Project Settings → Agent pools → PerformicsCICD). pool: name: PerformicsCICD jobs: - job: BuildAndTest displayName: Performics DevOps Pipeline steps: - checkout: self displayName: Checkout continueOnError: false - task: NodeTool@0 displayName: Use Node.js continueOnError: false inputs: versionSpec: $(NODE_VERSION) - script: | set -euo pipefail node -v npm -v pwd displayName: Diagnostics continueOnError: false - script: | set -euo pipefail npm ci displayName: npm ci continueOnError: false # - script: | # set -euo pipefail # npm run lint # displayName: ESLint # continueOnError: false # - script: | # set -euo pipefail # cd android # ./gradlew assembleRelease # displayName: Android assembleRelease # continueOnError: false # - script: npm test -- --ci --coverage # displayName: Jest