microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.6.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.ci/common-validation.yml

46lines · modecode

1steps:
2 - task: NodeTool@0
3 displayName: "Use Node 12.x"
4 inputs:
5 versionSpec: 12.x
6
7 - bash: npm install gulp react-devtools vsce -g --force
8 displayName: "npm install gulp react-devtools vsce -g"
9
10 - bash: npm ci
11 displayName: "npm ci"
12
13 - bash: npm run build
14 displayName: "npm run build"
15
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
22 - bash: "npm test --verbose"
23 displayName: "Run host tests"
24 env:
25 DISPLAY: ":99.0"
26
27 - bash: npm run test-localization
28 displayName: "Run localization tests"
29 env:
30 DISPLAY: ":99.0"
31
32 - task: PublishTestResults@2
33 displayName: "Publish Extension Test Results"
34 inputs:
35 testResultsFiles: test/ExtensionTests.xml
36 failTaskOnFailedTests: true
37 testRunTitle: "[Extension Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)"
38 condition: always()
39
40 - task: PublishTestResults@2
41 displayName: "Publish Localization Test Results"
42 inputs:
43 testResultsFiles: test/LocalizationTests.xml
44 failTaskOnFailedTests: true
45 testRunTitle: "[Localization Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)"
46 condition: always()
47