From 16452686e96555849cf490e650ae951cdefce473 Mon Sep 17 00:00:00 2001 From: jyu115 Date: Fri, 28 Jun 2024 16:59:26 -0400 Subject: [PATCH] modify github actions steps --- .github/workflows/e2e.yml | 8 +++++--- react-example/webpack.config.js | 13 +------------ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d5c5a3fe..d7608586 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -21,11 +21,13 @@ jobs: node-version: '20.10.0' cache: 'yarn' - name: Install dependencies - run: yarn install --frozen-lockfile - - name: Start React Sample App - run: yarn install:all && yarn start:all:react + run: | + rm -rf node_modules && rm -rf ./react-example/node_modules + yarn install:all --frozen-lockfile - name: Install Playwright Browsers run: yarn playwright install --with-deps + - name: Start React Sample App + run: yarn start:all:react - name: Run Playwright tests run: yarn playwright test - uses: actions/upload-artifact@v4 diff --git a/react-example/webpack.config.js b/react-example/webpack.config.js index ba00250f..d4adb6b0 100644 --- a/react-example/webpack.config.js +++ b/react-example/webpack.config.js @@ -58,17 +58,6 @@ module.exports = { }), new MiniCssExtractPlugin({ filename: '[name].css' - }), - // Exit the process when built successfully - { - apply: (compiler) => { - compiler.hooks.done.tap('DonePlugin', (stats) => { - console.log('Compile is done !'); - setTimeout(() => { - process.exit(0); - }); - }); - } - } + }) ] };