Skip to content

Commit eeae02b

Browse files
committed
ci
1 parent 7dc5e07 commit eeae02b

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

e2e-playwright/README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ End-to-End UI test automation using **Playwright**, **Cucumber.js**, and **TypeS
99
- Install dependencies and Playwright browsers:
1010

1111
```bash
12+
Local run:
13+
Run kafbat (docker compose -f ./documentation/compose/e2e-tests.yaml up -d)
1214
npm install
1315
npx playwright install
1416

15-
🚀 How to Run Head = true for development and debug
16-
1717
🔹 Normal Test Run
1818
npm test:stage
1919

@@ -24,6 +24,33 @@ npm run debug
2424
npm run test:failed
2525

2626

27-
🚀 How to Run Docker image
28-
docker build -t kafbat-e2e .
29-
docker run --rm kafbat-e2e
27+
Gihub action CI example
28+
name: CI
29+
30+
on:
31+
push:
32+
branches: [ main ]
33+
pull_request:
34+
35+
jobs:
36+
container-test-job:
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Checkout repo
41+
uses: actions/checkout@v3
42+
43+
- name: Set up Node.js
44+
uses: actions/setup-node@v3
45+
with:
46+
node-version: 18
47+
48+
- name: Install NPM dependencies
49+
run: npm install
50+
51+
- name: Install Playwright browsers
52+
run: npx playwright install
53+
54+
- name: 🚀 Run tests with ENV=prod
55+
run: cross-env ENV=prod HEAD=false BASEURL=http://localhost:8080 npm run test
56+

0 commit comments

Comments
 (0)