microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
.ci/common-validation.yml
42lines · modecode
| 1 | steps: |
| 2 | - task: NodeTool@0 |
| 3 | displayName: "Use Node 20.x" |
| 4 | inputs: |
| 5 | versionSpec: 20.x |
| 6 | - bash: | |
| 7 | npm install -g npm@latest |
| 8 | npm install gulp @vscode/vsce -g --force |
| 9 | displayName: "npm install gulp @vscode/vsce -g" |
| 10 | - bash: npm ci |
| 11 | displayName: "npm ci" |
| 12 | - bash: gulp |
| 13 | displayName: "gulp" |
| 14 | - bash: npm run build |
| 15 | displayName: "npm run build" |
| 16 | - bash: | |
| 17 | /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & |
| 18 | echo ">>> Started xvfb" |
| 19 | displayName: Start xvfb |
| 20 | condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) |
| 21 | - bash: "npm test --verbose" |
| 22 | displayName: "Run host tests" |
| 23 | env: |
| 24 | DISPLAY: ":99.0" |
| 25 | - bash: npm run test-localization --verbose |
| 26 | displayName: "Run localization tests" |
| 27 | env: |
| 28 | DISPLAY: ":99.0" |
| 29 | - task: PublishTestResults@2 |
| 30 | displayName: "Publish Extension Test Results" |
| 31 | inputs: |
| 32 | testResultsFiles: test/ExtensionTests.xml |
| 33 | failTaskOnFailedTests: true |
| 34 | testRunTitle: "[Extension Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)" |
| 35 | condition: always() |
| 36 | - task: PublishTestResults@2 |
| 37 | displayName: "Publish Localization Test Results" |
| 38 | inputs: |
| 39 | testResultsFiles: test/LocalizationTests.xml |
| 40 | failTaskOnFailedTests: true |
| 41 | testRunTitle: "[Localization Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)" |
| 42 | condition: always() |
| 43 | |