@@ -14,7 +14,7 @@ function cleanup {
14
14
# Delete yarn's cached versions of sentry packages added during this test run, since every test run installs multiple
15
15
# copies of each package. Without this, the cache can balloon in size quickly if integration tests are being run
16
16
# multiple times in a row.
17
- find $( yarn cache dir) -iname " npm-@sentry*" -newermt " $START_TIME " -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
17
+ find " $( yarn cache dir) " -iname " npm-@sentry*" -newermt " $START_TIME " -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
18
18
19
19
echo " [nextjs] Test run complete"
20
20
}
@@ -30,7 +30,7 @@ echo "Running integration tests on Node $NODE_VERSION"
30
30
# make a backup of our config file so we can restore it when we're done
31
31
mv next.config.js next.config.js.bak
32
32
33
- for NEXTJS_VERSION in 10 11; do
33
+ for NEXTJS_VERSION in 10 11 12 ; do
34
34
35
35
# Next 10 requires at least Node v10
36
36
if [ " $NODE_MAJOR " -lt " 10" ]; then
@@ -62,7 +62,13 @@ for NEXTJS_VERSION in 10 11; do
62
62
linkcli && linkplugin
63
63
mv -f package.json.bak package.json 2> /dev/null || true
64
64
65
- for RUN_WEBPACK_5 in false true ; do
65
+ SHOULD_RUN_WEBPACK_5=(true)
66
+ # Only run Webpack 4 tests for Next 10 and Next 11
67
+ if [ " $NEXTJS_VERSION " -eq " 10" ] || [ " $NEXTJS_VERSION " -eq " 11" ]; then
68
+ SHOULD_RUN_WEBPACK_5+=(false)
69
+ fi
70
+
71
+ for RUN_WEBPACK_5 in ${SHOULD_RUN_WEBPACK_5[*]} ; do
66
72
[ " $RUN_WEBPACK_5 " == true ] &&
67
73
WEBPACK_VERSION=5 ||
68
74
WEBPACK_VERSION=4
@@ -75,7 +81,7 @@ for NEXTJS_VERSION in 10 11; do
75
81
fi
76
82
77
83
echo " [nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION ] Building..."
78
- yarn build | grep " Using webpack "
84
+ yarn build
79
85
80
86
# if the user hasn't passed any args, use the default one, which restricts each test to only outputting success and
81
87
# failure messages
0 commit comments