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