mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Split Azure DevOps npm install/ci commands into different steps.
This commit is contained in:
parent
dfb3f67fc0
commit
ec39265b13
1 changed files with 31 additions and 11 deletions
|
|
@ -1,17 +1,35 @@
|
|||
# Azure DevOps Pipeline for Node.js
|
||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
||||
|
||||
parameters:
|
||||
osList: [ 'ubuntu', 'macos', 'windows' ]
|
||||
nodeList: [ '8', '10', '12' ]
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
${{ each os in parameters.osList }}:
|
||||
${{ each nv in parameters.nodeList }}:
|
||||
${{ format('{0}_node_{1}', os, nv) }}:
|
||||
imageName: ${{ format('{0}-latest', os) }}
|
||||
node_version: ${{ format('{0}.x', nv) }}
|
||||
linux_node_8:
|
||||
imageName: 'ubuntu-latest'
|
||||
node_version: 8.x
|
||||
linux_node_10:
|
||||
imageName: 'ubuntu-latest'
|
||||
node_version: 10.x
|
||||
linux_node_12:
|
||||
imageName: 'ubuntu-latest'
|
||||
node_version: 12.x
|
||||
macos_node_8:
|
||||
imageName: 'macos-latest'
|
||||
node_version: 8.x
|
||||
macos_node_10:
|
||||
imageName: 'macos-latest'
|
||||
node_version: 10.x
|
||||
macos_node_12:
|
||||
imageName: 'macos-latest'
|
||||
node_version: 12.x
|
||||
windows_node_8:
|
||||
imageName: 'windows-latest'
|
||||
node_version: 8.x
|
||||
windows_node_10:
|
||||
imageName: 'windows-latest'
|
||||
node_version: 10.x
|
||||
windows_node_12:
|
||||
imageName: 'windows-latest'
|
||||
node_version: 12.x
|
||||
|
||||
pool:
|
||||
vmImage: $(imageName)
|
||||
|
|
@ -22,6 +40,8 @@ steps:
|
|||
versionSpec: $(node_version)
|
||||
displayName: 'Install Node.js'
|
||||
|
||||
- script: 'npm install --no-package-lock'
|
||||
displayName: 'Install Dependencies'
|
||||
|
||||
- script: 'npm install --no-package-lock && npm run ci'
|
||||
displayName: 'npm install and run ci'
|
||||
- script: 'npm run ci'
|
||||
displayName: 'Run Tests'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue