File tree Expand file tree Collapse file tree 3 files changed +39
-27
lines changed Expand file tree Collapse file tree 3 files changed +39
-27
lines changed Original file line number Diff line number Diff line change
1
+ name : publish-pages-build-deployment
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ pull_request :
6
+ branches : [main]
7
+ types :
8
+ - closed
9
+
10
+ jobs :
11
+ deployment :
12
+ timeout-minutes : 60
13
+ if : github.event.pull_request.merged == true
14
+ name : " deploy to github"
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : deploy to github page
18
+ run : npm run deploy
Original file line number Diff line number Diff line change 1
1
name : Playwright Tests
2
2
on :
3
3
push :
4
- branches : [ main ]
4
+ branches : [main]
5
5
pull_request :
6
- branches : [ main ]
6
+ branches : [main]
7
+
7
8
jobs :
8
9
tests :
9
10
timeout-minutes : 60
10
11
runs-on : ubuntu-latest
11
12
steps :
12
- - uses : actions/checkout@v4
13
- - uses : actions/setup-node@v4
14
- with :
15
- node-version : lts/*
16
- - name : Install dependencies
17
- run : npm ci
18
- - name : Install Playwright Browsers
19
- run : npx playwright install --with-deps
20
- - name : Run Playwright tests
21
- run : npx playwright test
22
- - uses : actions/upload-artifact@v4
23
- if : always()
24
- with :
25
- name : playwright-report
26
- path : playwright-report/
27
- retention-days : 30
28
- deployment :
29
- timeout-minutes : 60
30
- if : github.event.pull_request.merged == true
31
- name : ' deploy to github'
32
- runs-on : ubuntu-latest
33
- steps :
34
- - name : deploy to github page
35
- run : npm run deploy
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version : lts/*
17
+ - name : Install dependencies
18
+ run : npm ci
19
+ - name : Install Playwright Browsers
20
+ run : npx playwright install --with-deps
21
+ - name : Run Playwright tests
22
+ run : npx playwright test
23
+ - uses : actions/upload-artifact@v4
24
+ if : always()
25
+ with :
26
+ name : playwright-report
27
+ path : playwright-report/
28
+ retention-days : 30
Original file line number Diff line number Diff line change 1
1
# React Playwright Demo
2
2
This is the project to demo the playwright with the React App
3
3
4
- ![ example workflow] ( https://github.com/jerseysu/playwright-demo/actions/workflows/playwright.yml/badge.svg )
4
+ ![ testing workflow] ( https://github.com/jerseysu/playwright-demo/actions/workflows/playwright.yml/badge.svg )
5
+ [ ![ pages-build-deployment] ( https://github.com/jerseysu/react-playwright-demo/actions/workflows/pages/pages-build-deployment/badge.svg?branch=main )] ( https://github.com/jerseysu/react-playwright-demo/actions/workflows/pages/pages-build-deployment )
You can’t perform that action at this time.
0 commit comments