Skip to content

Commit f54ca52

Browse files
Merge pull request #13 from VadimNastoyashchy/develop
Update dependencies
2 parents 36b6ae8 + 9b6f938 commit f54ca52

File tree

4 files changed

+64
-44
lines changed

4 files changed

+64
-44
lines changed

.github/workflows/github-actions-after-push.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,22 @@ on:
55
- develop
66
jobs:
77
e2e-tests:
8-
runs-on: ubuntu-latest # or macos-latest, windows-latest
9-
8+
timeout-minutes: 60
9+
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
ref: develop
15-
16-
- name: Install node
17-
uses: actions/setup-node@v2
18-
with:
19-
node-version: '14'
20-
21-
- uses: microsoft/playwright-github-action@v1
22-
14+
node-version: lts/*
2315
- name: Install dependencies
24-
run: npm install
25-
26-
- name: Install browsers
27-
run: npm i playwright-chromium
28-
29-
- name: Run tests
30-
run: npx playwright test
16+
run: npm i
17+
- name: Install Playwright Browsers
18+
run: npx playwright install --with-deps
19+
- name: Run Playwright tests
20+
run: npx playwright test
21+
- uses: actions/upload-artifact@v4
22+
if: ${{ !cancelled() }}
23+
with:
24+
name: playwright-report
25+
path: playwright-report/
26+
retention-days: 30
Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
name: GitHub Actions Manually
2-
on: [workflow_dispatch]
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [main, master]
5+
pull_request:
6+
branches: [main, master]
37
jobs:
4-
e2e-tests:
5-
runs-on: ubuntu-latest # or macos-latest, windows-latest
6-
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
711
steps:
8-
- name: Checkout
9-
uses: actions/checkout@v2
10-
11-
- name: Install node
12-
uses: actions/setup-node@v2
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1314
with:
14-
node-version: '14'
15-
16-
- uses: microsoft/playwright-github-action@v1
17-
15+
node-version: lts/*
1816
- name: Install dependencies
19-
run: npm install
20-
21-
- name: Install browsers
22-
run: npm i playwright-chromium
23-
24-
- name: Run tests
25-
run: npx playwright test
17+
run: npm i
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: ${{ !cancelled() }}
24+
with:
25+
name: playwright-report
26+
path: playwright-report/
27+
retention-days: 30

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,25 @@ Install all the necessary dependency using npm :
99

1010
```
1111
npm install
12+
```
13+
14+
### Run the test
15+
16+
```
17+
npm run test
18+
```
19+
or
20+
```
21+
npx playwright test
22+
```
23+
24+
### Generate the report
25+
26+
```
27+
npm run report
28+
```
29+
or
30+
31+
```
32+
npx playwright show-report
1233
```

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
},
2929
"homepage": "https://github.com/VadimNastoyashchy/playwright-saucedemo.com#readme",
3030
"devDependencies": {
31-
"@playwright/test": "1.26.1",
31+
"@playwright/test": "1.49.1",
32+
"@types/node": "^22.10.5",
3233
"@typescript-eslint/eslint-plugin": "5.38.1",
3334
"@typescript-eslint/parser": "5.38.1",
3435
"eslint-plugin-playwright": "0.11.2",
35-
"typescript": "4.8.4"
36+
"typescript": "5.7.3"
3637
}
37-
}
38+
}

0 commit comments

Comments
 (0)