forked from microsoft/BotFramework-Composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
89 lines (82 loc) · 2.46 KB
/
azure-pipelines.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
trigger:
- master
pr:
autoCancel: true
branches:
include:
- "*"
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
jobs:
- job: e2e
displayName: End-to-End Tests
# re-enable once we upgrade our subscription to cypress
# strategy:
# parallel: 4
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
displayName: "Use Node 12.13.0"
inputs:
versionSpec: 12.13.0
- task: CacheBeta@1
inputs:
key: yarn | $(Agent.OS) | Composer/yarn.lock
path: $(YARN_CACHE_FOLDER)
restoreKeys: |
yarn | $(Agent.OS)
displayName: Cache Yarn packages
- task: CacheBeta@1
displayName: Cache Cypress binary
inputs:
key: cypress | $(Agent.OS) | Composer/yarn.lock
path: /home/vsts/.cache/Cypress
- script: yarn --frozen-lock-file
displayName: yarn install
workingDirectory: Composer
- script: yarn build
displayName: yarn build
workingDirectory: Composer
- script: ./scripts/e2e-ci.sh
displayName: Run E2E Tests
workingDirectory: Composer
env:
# CYPRESS_RECORD_KEY: $(CYPRESS_RECORD_KEY)
CYPRESS_VIDEO: true
# CYPRESS_VIDEO_UPLOAD_ON_PASSES: true
CYPRESS_SCREENSHOTS_FOLDER: $(Build.ArtifactStagingDirectory)/cypress/screenshots
CYPRESS_VIDEOS_FOLDER: $(Build.ArtifactStagingDirectory)/cypress/videos
TERM: xterm
COMPOSER_BOTS_FOLDER: $(System.DefaultWorkingDirectory)/MyBots
DEBUG: composer
- task: PublishPipelineArtifact@1
displayName: Publish Cypress Artifacts
condition: failed()
continueOnError: true
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/cypress
artifactName: e2e
- script: cat e2e.log
displayName: Server Logs
condition: always()
continueOnError: true
workingDirectory: Composer
- job: security
displayName: Security Analysis
steps:
- task: UseDotNet@2
inputs:
version: '3.1.x'
packageType: runtime
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
projects: runtime/dotnet
- task: ComponentGovernanceComponentDetection@0
displayName: Component Detection
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
failOnAlert: false