Skip to content

Commit 237e639

Browse files
committed
Merge pull request #55 from datavisyn/rspack
feat: rspack
2 parents 7acf4da + aaca658 commit 237e639

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.github/actions/build-node/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ runs:
9191
path: ./yarn.lock
9292
- name: Webpack build
9393
if: inputs.run_webpack == 'true'
94-
run: npm run webpack:prod
94+
run: npm run bundle:prod || npm run webpack:prod
9595
shell: bash
9696
- uses: actions/upload-artifact@v3
9797
if: inputs.run_webpack == 'true'

.github/workflows/build-node-python.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ jobs:
196196
make env_decrypt || true
197197
env:
198198
ENV_PASSWORD: ${{ secrets.ENV_PASSWORD }}
199-
- name: Webpack dev build
200-
run: npm run webpack:dev
199+
- name: Bundle build
200+
run: npm run bundle:prod || npm run webpack:dev
201201
shell: bash
202202
- name: Run cypress e2e tests
203203
uses: cypress-io/github-action@v6
@@ -212,16 +212,17 @@ jobs:
212212
make start
213213
wait-on: "http://localhost:8080, http://localhost:9000/health"
214214
env: ${{ secrets.CYPRESS_ENV }}
215-
- name: Run cypress component tests
216-
uses: cypress-io/github-action@v6
217-
with:
218-
# Currently, the videos are buggy because of low-cpu/electron environment: https://github.com/cypress-io/cypress/issues/8210
219-
config: video=false,modifyObstructiveCode=false
220-
browser: chrome
221-
install: false
222-
component: true
223-
# TODO: Do component tests need the frontend/backend?
224-
env: ${{ secrets.CYPRESS_ENV }}
215+
# rspack currently does not support Cypress component tests
216+
# - name: Run cypress component tests
217+
# uses: cypress-io/github-action@v6
218+
# with:
219+
# # Currently, the videos are buggy because of low-cpu/electron environment: https://github.com/cypress-io/cypress/issues/8210
220+
# config: video=false,modifyObstructiveCode=false
221+
# browser: chrome
222+
# install: false
223+
# component: true
224+
# # TODO: Do component tests need the frontend/backend?
225+
# env: ${{ secrets.CYPRESS_ENV }}
225226
- name: Upload cypress screenshots
226227
uses: actions/upload-artifact@v4
227228
if: failure()
@@ -292,8 +293,8 @@ jobs:
292293
make env_decrypt || true
293294
env:
294295
ENV_PASSWORD: ${{ secrets.ENV_PASSWORD }}
295-
- name: Webpack dev build
296-
run: npm run webpack:dev
296+
- name: Bundle build
297+
run: npm run bundle:prod || npm run webpack:dev
297298
shell: bash
298299
- name: Install playwright browsers
299300
run: yarn playwright install --with-deps chromium

.github/workflows/build-single-product-part.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
touch ./yarn.lock
202202
yarn install --no-immutable
203203
yarn info --name-only
204-
yarn run webpack:prod
204+
yarn run bundle:prod || yarn run webpack:prod
205205
env:
206206
COMPONENT: ${{ inputs.component }}
207207
APP: ${{ steps.get-parameters.outputs.app }}

0 commit comments

Comments
 (0)