Skip to content

Commit

Permalink
modify github actions steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jyu115 committed Jun 28, 2024
1 parent c0e7d39 commit 1645268
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 1 addition & 12 deletions react-example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
}
}
})
]
};

0 comments on commit 1645268

Please sign in to comment.