Skip to content

Commit 6f2997f

Browse files
committed
Add caching to the window builds
1 parent 7a522f2 commit 6f2997f

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
uses: actions/cache@v2
3131
with:
3232
path: ~/.npm
33-
key: npm@${{ matrix.cypress-version }}
33+
key: npm-linux@${{ matrix.cypress-version }}
3434
- name: Cache Cypress binaries
3535
uses: actions/cache@v2
3636
with:
3737
path: ~/.cache/Cypress
38-
key: cypress@${{ matrix.cypress-version }}
38+
key: cypress-linux@${{ matrix.cypress-version }}
3939
- name: Change owner
4040
run: "chown root: ."
4141
- name: Dependencies
@@ -57,9 +57,22 @@ jobs:
5757

5858
windows:
5959
runs-on: windows-latest
60+
env:
61+
NPM_CONFIG_CACHE: ${{ github.workspace }}/.npm
62+
CYPRESS_CACHE_FOLDER: ${{ github.workspace }}/.cypress
6063
steps:
6164
- name: Checkout
6265
uses: actions/checkout@v2
66+
- name: Cache NPM modules
67+
uses: actions/cache@v2
68+
with:
69+
path: .npm
70+
key: npm-windows
71+
- name: Cache Cypress binaries
72+
uses: actions/cache@v2
73+
with:
74+
path: .cypress
75+
key: cypress-windows
6376
- name: Dependencies
6477
shell: bash
6578
env:

0 commit comments

Comments
 (0)