Files
dogs/node_modules/lite-server/azure-pipelines.yml
ChloeChen0423 7c63f2f07b 前端代码
2025-05-12 16:42:36 +09:00

68 lines
1.5 KiB
YAML

trigger:
branches:
include:
- main
pr:
- main
jobs:
- job: Linux
pool:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent
name: Hosted Ubuntu 1604
demands: npm
strategy:
matrix:
node_12_x:
node_version: 12.x
node_14_x:
node_version: 14.x
steps:
- task: NodeTool@0
displayName: 'Use $(node_version)'
inputs:
versionSpec: $(node_version)
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: false
command: install
- task: Npm@1
displayName: 'Run tests'
inputs:
command: custom
verbose: false
customCommand: 'run test'
- job: macOS
pool:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent
name: Hosted macOS
demands: npm
strategy:
matrix:
node_12_x:
node_version: 12.x
node_14_x:
node_version: 14.x
steps:
- task: NodeTool@0
displayName: 'Use $(node_version)'
inputs:
versionSpec: $(node_version)
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: false
command: install
- task: Npm@1
displayName: 'Run tests'
inputs:
command: custom
verbose: false
customCommand: 'run test'