Skip to content

Commit efa9971

Browse files
committed
Update package.json to add Playwright version 1.25.2 and refactor GitHub Actions workflow to use npm ci for dependency installation, improving reliability and consistency in the testing environment.
1 parent 04f9577 commit efa9971

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.github/workflows/deployment.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,12 @@ jobs:
3030
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3131
restore-keys: |
3232
${{ runner.os }}-node-
33-
# Clear npm cache and remove node_modules to ensure clean install
34-
- name: Clean npm cache
35-
run: |
36-
npm cache clean --force
37-
rm -rf node_modules
38-
# Install dependencies with a clean slate
3933
- name: Install dependencies
40-
run: |
41-
npm install
42-
npm install --save-dev @web/[email protected] @web/[email protected] [email protected]
43-
node node_modules/playwright/install.js
34+
run: npm ci
35+
- name: Generate API models
36+
run: npm run prepare
4437
- name: Run tests
45-
run: |
46-
node ./node_modules/@web/test-runner/dist/cli.js test/*.test.js --coverage --node-resolve
38+
run: npm test
4739
test_win:
4840
name: "Windows"
4941
runs-on: windows-latest

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"eslint-config-prettier": "^9.1.0",
5151
"husky": "^7.0.2",
5252
"lint-staged": "^11.1.2",
53+
"playwright": "1.25.2",
5354
"rimraf": "^5.0.5",
5455
"sinon": "^11.1.2",
5556
"typescript": "^4.4.3",

0 commit comments

Comments
 (0)