@@ -94,13 +94,15 @@ blocks:
9494 GDJS_KEY="GDJS-node_modules-$SEMAPHORE_GIT_BRANCH-revision-$(checksum GDJS/package-lock.json)"
9595
9696 if can_use_cache; then
97+ echo "Restoring caches..."
9798 cache restore "${NEWIDE_KEY}"
9899 cache restore "${GDJS_KEY}"
99100 else
100101 echo "Fork PR: skipping cache restore"
101- (cd newIDE/app && npm i)
102- (cd GDJS && git checkout package-lock.json && npm i)
103102 fi
103+
104+ (cd newIDE/app && npm i)
105+ (cd GDJS && git checkout package-lock.json && npm i)
104106 - cd newIDE/app
105107 - npm run postinstall
106108 - npm run flow
@@ -120,15 +122,17 @@ blocks:
120122 GDJS_TESTS_KEY="GDJS-tests-node_modules-$SEMAPHORE_GIT_BRANCH-revision-$(checksum GDJS/tests/package-lock.json)"
121123
122124 if can_use_cache; then
125+ echo "Restoring caches..."
123126 cache restore "${NEWIDE_KEY}"
124127 cache restore "${GDJS_KEY}"
125128 cache restore "${GDJS_TESTS_KEY}"
126129 else
127130 echo "Fork PR: skipping cache restore"
128- (cd newIDE/app && npm i)
129- (cd GDJS && git checkout package-lock.json && npm i)
130- (cd GDJS/tests && npm i)
131131 fi
132+
133+ (cd newIDE/app && npm i)
134+ (cd GDJS && git checkout package-lock.json && npm i)
135+ (cd GDJS/tests && npm i)
132136 - cd GDJS
133137 - npm run check-types
134138 - npm run generate-doc
@@ -151,13 +155,15 @@ blocks:
151155 GDJS_KEY="GDJS-node_modules-$SEMAPHORE_GIT_BRANCH-revision-$(checksum GDJS/package-lock.json)"
152156
153157 if can_use_cache; then
158+ echo "Restoring caches..."
154159 cache restore "${NEWIDE_KEY}"
155160 cache restore "${GDJS_KEY}"
156161 else
157162 echo "Fork PR: skipping cache restore"
158- (cd newIDE/app && npm i)
159- (cd GDJS && git checkout package-lock.json && npm i)
160163 fi
164+
165+ (cd newIDE/app && npm i)
166+ (cd GDJS && git checkout package-lock.json && npm i)
161167 - cd newIDE/app
162168 - npm run postinstall
163169 - npm run check-format
@@ -174,11 +180,13 @@ blocks:
174180 GDJS_KEY="GDJS-node_modules-$SEMAPHORE_GIT_BRANCH-revision-$(checksum GDJS/package-lock.json)"
175181
176182 if can_use_cache; then
183+ echo "Restoring cache..."
177184 cache restore "${GDJS_KEY}"
178185 else
179186 echo "Fork PR: skipping cache restore"
180- (cd GDJS && git checkout package-lock.json && npm i)
181187 fi
188+
189+ (cd GDJS && git checkout package-lock.json && npm i)
182190 - cd GDJS
183191 - npm run check-format
184192
@@ -200,13 +208,15 @@ blocks:
200208 GDJS_KEY="GDJS-node_modules-$SEMAPHORE_GIT_BRANCH-revision-$(checksum GDJS/package-lock.json)"
201209
202210 if can_use_cache; then
211+ echo "Restoring caches..."
203212 cache restore "${NEWIDE_KEY}"
204213 cache restore "${GDJS_KEY}"
205214 else
206215 echo "Fork PR: skipping cache restore"
207- (cd newIDE/app && npm i)
208- (cd GDJS && git checkout package-lock.json && npm i)
209216 fi
217+
218+ (cd newIDE/app && npm i)
219+ (cd GDJS && git checkout package-lock.json && npm i)
210220 - cd newIDE/app
211221 - npm run postinstall
212222 - npm run analyze-test-coverage
@@ -224,13 +234,15 @@ blocks:
224234 GDJS_TESTS_KEY="GDJS-tests-node_modules-$SEMAPHORE_GIT_BRANCH-revision-$(checksum GDJS/tests/package-lock.json)"
225235
226236 if can_use_cache; then
237+ echo "Restoring caches..."
227238 cache restore "${GDJS_KEY}"
228239 cache restore "${GDJS_TESTS_KEY}"
229240 else
230241 echo "Fork PR: skipping cache restore"
231- (cd GDJS && git checkout package-lock.json && npm i)
232- (cd GDJS/tests && npm i)
233242 fi
243+
244+ (cd GDJS && git checkout package-lock.json && npm i)
245+ (cd GDJS/tests && npm i)
234246 - cd GDJS
235247 - npm run build
236248 - sudo apt-get install -y libegl1 libgl1-mesa-dri libgbm1 xvfb
0 commit comments