-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathazure-pipelines.yml
47 lines (39 loc) · 976 Bytes
/
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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
container: mcr.microsoft.com/playwright:bionic
steps:
- script: |
npm install
displayName: 'npm install'
- script: |
npm run test
displayName: 'execute tests'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'report/junitreport.xml'
testRunTitle: 'Test Report'
displayName: 'Publish Reports'
- task: PublishCucumberReport@1
inputs:
jsonDir: './report'
outputPath: './report'
theme: 'bootstrap'
reportSuiteAsScenarios: true
name: 'PlaywrightwithCucumber'
title: 'Playwright with Cucumber'
- task: CmdLine@2
inputs:
script: |
for dir in ./videos/*/
do
dir=${dir%*/}
for FILE in "${dir%*/}"/*.webm
do
echo $FILE
mv "$FILE" "${dir%*/}/report.webm"
done
done
displayName: 'Renaming videos'