Skip to content

Commit e6177b7

Browse files
committed
Refactor Playwright setup in CI/CD and update package dependencies
- Changed Playwright dependency to @playwright/test in package.json. - Updated GitHub Actions workflow to use the microsoft/playwright-github-action for browser setup. - Simplified browser installation command to only include chromium.
1 parent e207c12 commit e6177b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
${{ runner.os }}-node-
3333
- name: Install dependencies
3434
run: npm install
35-
- name: Install Playwright Browsers
36-
run: npx playwright install --with-deps chromium firefox webkit
35+
- name: Setup Playwright
36+
uses: microsoft/playwright-github-action@v1
3737
- name: Run tests
3838
run: npm test
3939
test_win:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install dependencies
5454
run: npm install
5555
- name: Install Playwright Browsers
56-
run: npx playwright install --with-deps chromium firefox webkit
56+
run: npx playwright install chromium
5757
- name: Run tests
5858
run: npm test
5959
tag:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"eslint-config-prettier": "^8.3.0",
5252
"husky": "^7.0.2",
5353
"lint-staged": "^11.2.2",
54-
"playwright": "^1.40.0",
54+
"@playwright/test": "^1.40.0",
5555
"semver": "^7.5.4",
5656
"sinon": "^11.1.2",
5757
"typescript": "^4.4.3",

0 commit comments

Comments
 (0)