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