加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
azure-pipelines.yml 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
南客小猪 提交于 2021-08-14 09:26 . :package:update package related codes
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
# VSCode docs https://code.visualstudio.com/api/working-with-extensions/continuous-integration
trigger:
branches:
include:
- main
- next
- test
tags:
include:
- v*
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macOS-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- 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: |
echo ">>> install npm packages"
yarn
echo ">>> installed npm packages"
echo ">>> run eslint"
yarn lint
echo ">>> Run sample integration test"
yarn test
displayName: Run Tests
env:
DISPLAY: ':99.0'
- bash: |
echo ">>> Publish"
yarn deploy
displayName: Publish
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Agent.OS'], 'Linux'))
env:
VSCE_PAT: $(VSCE_PAT)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化