Skip to content

Commit

Permalink
Merge pull request #55 from datavisyn/rspack
Browse files Browse the repository at this point in the history
feat: rspack
  • Loading branch information
puehringer committed Feb 27, 2024
2 parents 7acf4da + aaca658 commit 237e639
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ runs:
path: ./yarn.lock
- name: Webpack build
if: inputs.run_webpack == 'true'
run: npm run webpack:prod
run: npm run bundle:prod || npm run webpack:prod
shell: bash
- uses: actions/upload-artifact@v3
if: inputs.run_webpack == 'true'
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ jobs:
make env_decrypt || true
env:
ENV_PASSWORD: ${{ secrets.ENV_PASSWORD }}
- name: Webpack dev build
run: npm run webpack:dev
- name: Bundle build
run: npm run bundle:prod || npm run webpack:dev
shell: bash
- name: Run cypress e2e tests
uses: cypress-io/github-action@v6
Expand All @@ -212,16 +212,17 @@ jobs:
make start
wait-on: "http://localhost:8080, http://localhost:9000/health"
env: ${{ secrets.CYPRESS_ENV }}
- name: Run cypress component tests
uses: cypress-io/github-action@v6
with:
# Currently, the videos are buggy because of low-cpu/electron environment: https://github.com/cypress-io/cypress/issues/8210
config: video=false,modifyObstructiveCode=false
browser: chrome
install: false
component: true
# TODO: Do component tests need the frontend/backend?
env: ${{ secrets.CYPRESS_ENV }}
# rspack currently does not support Cypress component tests
# - name: Run cypress component tests
# uses: cypress-io/github-action@v6
# with:
# # Currently, the videos are buggy because of low-cpu/electron environment: https://github.com/cypress-io/cypress/issues/8210
# config: video=false,modifyObstructiveCode=false
# browser: chrome
# install: false
# component: true
# # TODO: Do component tests need the frontend/backend?
# env: ${{ secrets.CYPRESS_ENV }}
- name: Upload cypress screenshots
uses: actions/upload-artifact@v4
if: failure()
Expand Down Expand Up @@ -292,8 +293,8 @@ jobs:
make env_decrypt || true
env:
ENV_PASSWORD: ${{ secrets.ENV_PASSWORD }}
- name: Webpack dev build
run: npm run webpack:dev
- name: Bundle build
run: npm run bundle:prod || npm run webpack:dev
shell: bash
- name: Install playwright browsers
run: yarn playwright install --with-deps chromium
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-single-product-part.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
touch ./yarn.lock
yarn install --no-immutable
yarn info --name-only
yarn run webpack:prod
yarn run bundle:prod || yarn run webpack:prod
env:
COMPONENT: ${{ inputs.component }}
APP: ${{ steps.get-parameters.outputs.app }}
Expand Down

0 comments on commit 237e639

Please sign in to comment.