Skip to content

Commit 193ca1b

Browse files
committed
Updated playwright.yml to cache npm dependencies for faster
1 parent 2c310fc commit 193ca1b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
- name: Checkout repo
4343
uses: actions/checkout@v3
4444

45+
- name: Cache node_modules
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.npm
49+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
50+
restore-keys: |
51+
${{ runner.os }}-npm-
52+
4553
- name: Build Docker Image
4654
run: docker build -t my-playwright-runner -f Dockerfile.playwright .
4755

@@ -79,4 +87,4 @@ jobs:
7987
with:
8088
github_token: ${{ secrets.GITHUB_TOKEN }}
8189
publish_dir: ./allure-report
82-
publish_branch: gh-pages
90+
publish_branch: gh-pages

0 commit comments

Comments
 (0)