Skip to content

Commit 3870b09

Browse files
committed
fix: add --ignore-scripts argument to yarn cache key
TICKET: VL-3710
1 parent 8f105d3 commit 3870b09

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
path: |
5555
node_modules
5656
modules/*/node_modules
57-
key: ${{ runner.os }}-node${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/package.json') }}
57+
key: ${{ runner.os }}-node${{matrix.node-version}}-ignore-scripts-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/package.json') }}
5858

5959
- name: Install Packages
6060
if: steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
@@ -106,7 +106,7 @@ jobs:
106106
path: |
107107
node_modules
108108
modules/*/node_modules
109-
key: ${{ runner.os }}-node20-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/package.json') }}
109+
key: ${{ runner.os }}-node20-ignore-scripts-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/package.json') }}
110110

111111
- name: Install Packages
112112
if: steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
@@ -152,7 +152,7 @@ jobs:
152152
path: |
153153
node_modules
154154
modules/*/node_modules
155-
key: ${{ runner.os }}-node22-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/package.json') }}
155+
key: ${{ runner.os }}-node22-ignore-scripts-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/package.json') }}
156156

157157
- name: Install Packages
158158
if: steps.lerna-cache.outputs.cache-hit != 'true'
@@ -300,38 +300,38 @@ jobs:
300300
id: docker-test
301301
run: |
302302
echo "Testing Docker image bitgo/express:${{ github.sha }}"
303-
303+
304304
CONTAINER_ID=$(docker run -d -p 3080:3080 bitgo/express:${{ github.sha }})
305305
echo "Started container: $CONTAINER_ID"
306-
306+
307307
# Wait for the service to be ready with timeout
308308
echo "Waiting for service to be ready..."
309-
309+
310310
for i in {1..30}; do
311311
if curl -f -s --max-time 5 http://localhost:3080/api/v2/ping > /dev/null 2>&1; then
312312
echo "✅ API health check passed"
313313
break
314314
fi
315-
315+
316316
if [ $i -eq 30 ]; then
317317
echo "::error::API health check failed after 30 attempts"
318318
docker logs "$CONTAINER_ID"
319319
docker stop "$CONTAINER_ID"
320320
docker rm "$CONTAINER_ID"
321321
exit 1
322322
fi
323-
323+
324324
echo "Waiting for API... (attempt $i/30)"
325325
sleep 2
326326
done
327-
327+
328328
# Check container logs for errors
329329
docker logs "$CONTAINER_ID"
330-
330+
331331
# Stop the container
332332
docker stop "$CONTAINER_ID"
333333
docker rm "$CONTAINER_ID"
334-
334+
335335
echo "✅ Docker image tests passed"
336336
337337
dockerfile-check:
@@ -354,7 +354,7 @@ jobs:
354354
path: |
355355
node_modules
356356
modules/*/node_modules
357-
key: ${{ runner.os }}-node22-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json')}}-${{ hashFiles('**/package.json') }}
357+
key: ${{ runner.os }}-node22-ignore-scripts-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json')}}-${{ hashFiles('**/package.json') }}
358358

359359
- name: Install Packages
360360
if: steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')

0 commit comments

Comments
 (0)