Skip to content

Commit b0dae83

Browse files
authored
Merge pull request #1413 from AppQuality/UN-1726-add-cache
chore(actions): update workflow files to standardize node version syntax and add caching for node_modules
2 parents 26bf5b9 + 3fb28e8 commit b0dae83

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/e2e.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# run 6 copies of the job in parallel
2020
shard: [1, 2, 3, 4, 5, 6]
2121

22-
name: "Playwright Tests - pwc"
22+
name: 'Playwright Tests - pwc'
2323
timeout-minutes: 20
2424
runs-on: ubuntu-22.04
2525
container: mcr.microsoft.com/playwright:v1.39.0-jammy
@@ -43,7 +43,16 @@ jobs:
4343

4444
- uses: actions/setup-node@v3
4545
with:
46-
node-version: "18.x"
46+
node-version: '18.x'
47+
48+
- name: Cache node_modules
49+
uses: actions/cache@v3
50+
with:
51+
path: |
52+
node_modules
53+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
54+
restore-keys: |
55+
${{ runner.os }}-yarn-
4756
4857
- name: Install dependencies
4958
run: |

.github/workflows/push.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ jobs:
1313
- uses: actions/checkout@v2
1414
with:
1515
fetch-depth: 0
16+
17+
- name: Cache node_modules
18+
uses: actions/cache@v3
19+
with:
20+
path: |
21+
node_modules
22+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-yarn-
25+
1626
- name: Use Node.js 18.x
1727
uses: actions/setup-node@v2
1828
with:

0 commit comments

Comments
 (0)