Skip to content

Commit 03a1f0b

Browse files
committed
Added cache clear to e2e scripts
1 parent 3f34238 commit 03a1f0b

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

tasks/e2e-installs.sh

+11
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ set -x
8383
cd ..
8484
root_path=$PWD
8585

86+
# Clear cache to avoid issues with incorrect packages being used
87+
if hash yarnpkg 2>/dev/null
88+
then
89+
yarn cache clean
90+
fi
91+
92+
if hash npm 2>/dev/null
93+
then
94+
npm cache clean
95+
fi
96+
8697
# Prevent lerna bootstrap, we only want top-level dependencies
8798
cp package.json package.json.bak
8899
grep -v "lerna bootstrap" package.json > temp && mv temp package.json

tasks/e2e-kitchensink.sh

+11
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ set -x
6666
cd ..
6767
root_path=$PWD
6868

69+
# Clear cache to avoid issues with incorrect packages being used
70+
if hash yarnpkg 2>/dev/null
71+
then
72+
yarn cache clean
73+
fi
74+
75+
if hash npm 2>/dev/null
76+
then
77+
npm cache clean
78+
fi
79+
6980
# Prevent lerna bootstrap, we only want top-level dependencies
7081
cp package.json package.json.bak
7182
grep -v "lerna bootstrap" package.json > temp && mv temp package.json

tasks/e2e-simple.sh

+11
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ set -x
6565
cd ..
6666
root_path=$PWD
6767

68+
# Clear cache to avoid issues with incorrect packages being used
69+
if hash yarnpkg 2>/dev/null
70+
then
71+
yarn cache clean
72+
fi
73+
74+
if hash npm 2>/dev/null
75+
then
76+
npm cache clean
77+
fi
78+
6879
# Prevent lerna bootstrap, we only want top-level dependencies
6980
cp package.json package.json.bak
7081
grep -v "lerna bootstrap" package.json > temp && mv temp package.json

0 commit comments

Comments
 (0)