@@ -14,7 +14,7 @@ function cleanup {
1414 # Delete yarn's cached versions of sentry packages added during this test run, since every test run installs multiple
1515 # copies of each package. Without this, the cache can balloon in size quickly if integration tests are being run
1616 # 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 {} \;
1818
1919 echo " [nextjs] Test run complete"
2020}
@@ -30,7 +30,7 @@ echo "Running integration tests on Node $NODE_VERSION"
3030# make a backup of our config file so we can restore it when we're done
3131mv next.config.js next.config.js.bak
3232
33- for NEXTJS_VERSION in 10 11; do
33+ for NEXTJS_VERSION in 10 11 12 ; do
3434
3535 # Next 10 requires at least Node v10
3636 if [ " $NODE_MAJOR " -lt " 10" ]; then
@@ -62,7 +62,13 @@ for NEXTJS_VERSION in 10 11; do
6262 linkcli && linkplugin
6363 mv -f package.json.bak package.json 2> /dev/null || true
6464
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
6672 [ " $RUN_WEBPACK_5 " == true ] &&
6773 WEBPACK_VERSION=5 ||
6874 WEBPACK_VERSION=4
@@ -75,7 +81,7 @@ for NEXTJS_VERSION in 10 11; do
7581 fi
7682
7783 echo " [nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION ] Building..."
78- yarn build | grep " Using webpack "
84+ yarn build
7985
8086 # if the user hasn't passed any args, use the default one, which restricts each test to only outputting success and
8187 # failure messages
0 commit comments