Skip to content

Commit a25bf79

Browse files
committed
ci: add e2e job
1 parent c1e28cb commit a25bf79

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,31 @@ jobs:
7878
with:
7979
files: ./junit.xml
8080
report_type: test_results
81+
82+
e2e:
83+
name: E2E Tests
84+
runs-on: ubuntu-latest
85+
86+
steps:
87+
- name: Harden Runner
88+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
89+
with:
90+
egress-policy: audit
91+
92+
- name: Checkout code
93+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
94+
95+
- name: Setup Node.js
96+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
97+
with:
98+
node-version-file: '.nvmrc'
99+
cache: 'npm'
100+
101+
- name: Install dependencies
102+
run: npm ci
103+
104+
- name: Install Playwright browsers
105+
run: npx playwright install --with-deps
106+
107+
- name: Run E2E tests
108+
run: node --run test:e2e

0 commit comments

Comments
 (0)