Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f643f5a

Browse files
committedMar 17, 2023
ci: add e2e tests to ci workflow
1 parent fac5037 commit f643f5a

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed
 

‎.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Node.js CI
22

33
on:
44
pull_request:
5-
branches: [ '**' ]
5+
branches: ['**']
66

77
jobs:
88
commitlint:
@@ -34,3 +34,31 @@ jobs:
3434
- uses: actions/setup-node@v2
3535
- run: npm ci
3636
- run: npm test
37+
38+
e2e_tests:
39+
runs-on: ubuntu-latest
40+
41+
services:
42+
backend:
43+
image: cr.yandex/yc/yandex-docker-local-ydb
44+
ports:
45+
- 2135:2135
46+
- 8765:8765
47+
options: --hostname localhost -e YDB_ALLOW_ORIGIN="http://localhost:3000"
48+
49+
steps:
50+
- uses: actions/checkout@v2
51+
with:
52+
fetch-depth: 0
53+
- uses: actions/setup-node@v2
54+
with:
55+
node-version: 18
56+
57+
- name: Install dependencies
58+
run: npm ci
59+
60+
- name: Install Plawright deps
61+
run: npm run test:e2e:install
62+
63+
- name: Run Playwright tests
64+
run: npm run test:e2e

0 commit comments

Comments
 (0)
Please sign in to comment.