Skip to content

Commit e2ec92a

Browse files
committed
adding testing workflow
1 parent af84ae2 commit e2ec92a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: E2E
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
e2e:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-go@v5
12+
with:
13+
go-version: stable
14+
- uses: browser-actions/setup-chrome@v1
15+
id: chrome
16+
- name: Install ffmpeg
17+
run: sudo apt-get update && sudo apt-get install -y ffmpeg
18+
- name: Run e2e tests
19+
env:
20+
CHROME_BIN: ${{ steps.chrome.outputs.chrome-path }}
21+
CHROMEDP_NO_SANDBOX: "1"
22+
E2E_RECORD: "1"
23+
E2E_RECORD_FORMAT: gif
24+
E2E_RECORD_FPS: "6"
25+
run: make test-e2e
26+
- name: Upload e2e gifs
27+
if: always()
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: e2e-gifs
31+
path: e2e-artifacts
32+
if-no-files-found: warn
33+
retention-days: 7

0 commit comments

Comments
 (0)