Skip to content

Commit d477206

Browse files
author
tkostuch
committed
revert: cache theme on each step and clone theme on last event
1 parent 782f7bd commit d477206

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/test_vsf1.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ jobs:
3030
- name: Get cached dependencies
3131
uses: actions/cache@v2
3232
with:
33-
path: |
34-
'**/node_modules'
35-
'~/src/themes/default'
33+
path: '**/node_modules'
3634
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
3735

3836
- name: Clone default theme
@@ -57,9 +55,7 @@ jobs:
5755
- name: Get cached dependencies
5856
uses: actions/cache@v2
5957
with:
60-
path: |
61-
'**/node_modules'
62-
'~/src/themes/default'
58+
path: '**/node_modules'
6359
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
6460

6561
- name: Run linter
@@ -81,9 +77,7 @@ jobs:
8177
- name: Get cached dependencies
8278
uses: actions/cache@v2
8379
with:
84-
path: |
85-
'**/node_modules'
86-
'~/src/themes/default'
80+
path: '**/node_modules'
8781
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
8882

8983
- name: Run unit tests
@@ -105,10 +99,11 @@ jobs:
10599
- name: Get cached dependencies
106100
uses: actions/cache@v2
107101
with:
108-
path: |
109-
'**/node_modules'
110-
'~/src/themes/default'
102+
path: '**/node_modules'
111103
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
112104

105+
- name: Clone default theme
106+
run: git clone --quiet --single-branch --branch master https://github.com/DivanteLtd/vsf-default.git ./src/themes/default
107+
113108
- name: Run build
114109
run: yarn build

0 commit comments

Comments
 (0)