Skip to content

Commit

Permalink
github actions try again
Browse files Browse the repository at this point in the history
  • Loading branch information
jyu115 committed Jun 28, 2024
1 parent d9b5b3f commit c0e7d39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Start React Sample App
run: yarn start:all:react
run: yarn install:all && yarn start:all:react
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
Expand Down
13 changes: 12 additions & 1 deletion react-example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ 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);
});
});
}
}
]
};
12 changes: 1 addition & 11 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ module.exports = {
}),
new MiniCssExtractPlugin({
filename: 'dist/components/style.css' // Output CSS filename
}),
{
apply: (compiler) => {
compiler.hooks.done.tap('DonePlugin', (stats) => {
console.log('Compile is done !');
setTimeout(() => {
process.exit(0);
});
});
}
}
})
],
module: {
rules: [
Expand Down

0 comments on commit c0e7d39

Please sign in to comment.