microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.16.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

.ci/common-validation.yml

57lines · modecode

1steps:
2- task: NodeTool@0
3 displayName: 'Use Node 10.x'
4 inputs:
5 versionSpec: 10.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 vscode:prepublish
14 displayName: 'npm run vscode:prepublish'
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 run test-localization
23 displayName: 'Run localization tests'
24 env:
25 DISPLAY: ':99.0'
26
27- bash: 'npm test --verbose'
28 displayName: 'Run host tests'
29 env:
30 DISPLAY: ':99.0'
31
32- bash: gulp test:coverage
33 displayName: 'Run hostless tests'
34
35- task: PublishTestResults@2
36 displayName: 'Publish Debugger Test Results'
37 inputs:
38 testResultsFiles: test/DebuggerTests.xml
39 failTaskOnFailedTests: true
40 testRunTitle: '[Debugger Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)'
41 condition: always()
42
43- task: PublishTestResults@2
44 displayName: 'Publish Extension Test Results'
45 inputs:
46 testResultsFiles: test/ExtensionTests.xml
47 failTaskOnFailedTests: true
48 testRunTitle: '[Extension Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)'
49 condition: always()
50
51- task: PublishTestResults@2
52 displayName: 'Publish Localization Test Results'
53 inputs:
54 testResultsFiles: test/LocalizationTests.xml
55 failTaskOnFailedTests: true
56 testRunTitle: '[Localization Context] $(Agent.OS) React Native unit tests - Attempt №$(System.JobAttempt)'
57 condition: always()
58