mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
test: ui test use secret and include branch (#27433)
* test: ui test use secret and include branch * fix argos token
This commit is contained in:
parent
a674541260
commit
204d2e342a
@ -2,8 +2,9 @@ name: Ant Design
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
exclude:
|
||||
- gh-pages
|
||||
include:
|
||||
- master
|
||||
- feature
|
||||
|
||||
# https://developercommunity.visualstudio.com/comments/949241/view.html
|
||||
pr:
|
||||
@ -67,6 +68,7 @@ stages:
|
||||
|
||||
- stage: ui
|
||||
variables:
|
||||
ARGOSTOKEN: $(ARGOS_TOKEN)
|
||||
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}:
|
||||
branchName: $[ replace(variables['Build.SourceBranch'], 'refs/heads/', '') ]
|
||||
commitId: $(Build.SourceVersion)
|
||||
@ -91,5 +93,5 @@ stages:
|
||||
displayName: 'Install modules'
|
||||
- script: npm run test-image
|
||||
displayName: 'UI Test'
|
||||
- script: npm run argos -- --token $ARGOS_TOKEN --branch $(branchName) --commit $(commitId)
|
||||
- script: npm run argos -- --token $(ARGOSTOKEN) --branch $(branchName) --commit $(commitId)
|
||||
displayName: 'Upload to argos-ci'
|
||||
|
Loading…
Reference in New Issue
Block a user