monstar-lab-oss / ml-frontend

A monorepo created to provide a starter kit for front-end projects at Monstar Lab, Inc.
https://www.npmjs.com/package/start-frontend
Mozilla Public License 2.0
14 stars 1 forks source link

[BUG] The start frontend CLI test fails #1293

Closed jinmayamashita closed 3 months ago

jinmayamashita commented 4 months ago

Describe the bug

The start-frontend CLI test is failing in the CI env.

https://github.com/monstar-lab-oss/ml-frontend/actions/runs/9904362646/job/27361609817

To Reproduce

Steps to reproduce the behavior:

  1. Commit and push changes to the main branch.
  2. Notice the failure in the cli:test step due to missing build artifacts.

Expected behavior

The cli:test job in the CI pipeline should run successfully.

Related packages/templates

start-frontend

Additional context (optional)

The issue arises because the build process was being executed before the tests, but the test context was deleting the build artifacts. (I still don't know the reason yet.) This caused the CLI test to fail due to missing files.

e.g. https://github.com/monstar-lab-oss/ml-frontend/commit/c41d38fa54c77360d0c6f596402d7750d1807b7b