Skip to content

Commit f0f8424

Browse files
committed
feat: initial e2e setup with first test implemented
1 parent 9939109 commit f0f8424

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/e2e_tests.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: E2E Tests
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
e2e:
8+
name: E2E Tests
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "20"
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 10.24.0
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
working-directory: test/e2e
28+
29+
- name: Setup virtual display
30+
run: |
31+
sudo apt-get update -q
32+
sudo apt-get install -y xvfb libgtk-3-0 libxss1 libgconf-2-4 libnss3 libasound2
33+
34+
- name: Run E2E tests
35+
run: xvfb-run -a pnpm test:e2e
36+
working-directory: test/e2e
37+
env:
38+
E2E_CLOUD: ${{ secrets.E2E_CLOUD }}
39+
E2E_API_KEY: ${{ secrets.E2E_API_KEY }}
40+
E2E_API_SECRET: ${{ secrets.E2E_API_SECRET }}
41+
CI: true
42+
43+
- name: Generate Allure report
44+
if: always()
45+
run: pnpm exec allure generate allure-results -o allure-report --clean
46+
working-directory: test/e2e
47+
48+
- name: Upload Allure report
49+
if: always()
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: allure-report-${{ github.run_number }}
53+
path: test/e2e/allure-report
54+
retention-days: 30

0 commit comments

Comments
 (0)