Debian Codegraph @

build/azure-pipelines/templates/test-steps.yml

raw
1 ###############################################################################################
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # Licensed under the MIT License. See License.txt in the project root for license information.
4 ###############################################################################################
5 parameters:
6 - name: package
7 type: string
8 - name: script
9 type: string
10 default: 'all:publish'
11
12 steps:
13 - script: npm install --root-only
14 workingDirectory: $(Build.SourcesDirectory)
15 displayName: Install dependencies
16 - bash: |
17 /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
18 echo ">>> Started xvfb"
19 displayName: Start xvfb
20 condition: eq(variables['Agent.OS'], 'Linux')
21 - script: npm run ${{ parameters.script }}
22 workingDirectory: $(Build.SourcesDirectory)/${{ parameters.package }}
23 displayName: Verify package