-
Notifications
You must be signed in to change notification settings - Fork 19
47 lines (34 loc) · 939 Bytes
/
main.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
name: Playwright Test Execution
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
e2e-tests:
runs-on: ubuntu-latest # or macos-latest, windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: microsoft/playwright-github-action@v1
- name: Install dependencies and run tests
run: npm install && npm test
- name : Rename videos
run: |
for dir in ./videos/*/
do
dir=${dir%*/}
for FILE in "${dir%*/}"/*.webm
do
echo $FILE
mv "$FILE" "${dir%*/}/report.webm"
done
done
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: test-artifacts
path: |
report
videos