* chore: add jest-junit dependency for improved test reporting - Updated package.json and package-lock.json to include jest-junit version 16.0.0, enhancing test reporting capabilities in the project. * chore: enhance Jest configuration for improved test coverage and CI reporting - Added coverage collection settings, including coverage thresholds and report formats. - Configured CI-specific options for Jest, including the use of jest-junit for test reporting and adjusted worker settings for better performance in CI environments. * chore: update frontend test command for CI mode to ensure proper environment variable usage - Modified the test command in the Makefile to set CI=true for accurate test execution in CI environments. * chore: enhance frontend CI workflow with test reporting and coverage uploads - Replaced the frontend dependency installation step with a command to run unit tests in CI mode. - Added steps to publish test results using junit report and to comment on pull requests with coverage summaries. - Implemented artifact upload for coverage reports to improve visibility and tracking of test coverage over time. * chore: add frontend dependency installation step to CI workflow - Introduced a step to install frontend dependencies using npm ci in the GitHub Actions workflow. - This enhancement ensures that all necessary packages are available before running frontend unit tests, improving the reliability of the CI process. * chore: update junit report action version in CI workflow - Upgraded the junit report action from v5 to v5.5.1 in the GitHub Actions workflow to leverage the latest features and improvements for test result reporting. * chore: add Jest unit test workflow for frontend - Introduced a new GitHub Actions workflow to run Jest unit tests for the frontend. - The workflow includes steps for checking out the repository, setting up the Node.js environment, running tests, publishing test results, adding coverage comments on pull requests, and uploading coverage reports. - This enhancement improves the CI process by ensuring comprehensive testing and reporting for frontend components. * chore: integrate Jest unit tests into CI workflow - Added a new job to the CI workflow to run frontend unit tests using Jest. - Updated the changes filter to include Jest test files, ensuring they are recognized during the CI process. - This enhancement improves the testing coverage and reliability of the frontend components.
86 lines
2.9 KiB
YAML
86 lines
2.9 KiB
YAML
# https://github.com/dorny/paths-filter
|
|
python:
|
|
- "src/backend/**"
|
|
- "src/backend/**.py"
|
|
- "pyproject.toml"
|
|
- "uv.lock"
|
|
- "src/backend/base/pyproject.toml"
|
|
- "src/backend/base/uv.lock"
|
|
- "**/python_test.yml"
|
|
components-changes:
|
|
- "src/backend/base/langflow/components/**"
|
|
starter-projects-changes:
|
|
- "src/backend/base/langflow/initial_setup/**"
|
|
frontend-tests:
|
|
- "src/frontend/tests/**"
|
|
frontend:
|
|
- "src/frontend/**"
|
|
- "**/typescript_test.yml"
|
|
- "**/jest_test.yml"
|
|
docs:
|
|
- "docs/**"
|
|
|
|
# Test categories and their associated paths
|
|
starter-projects:
|
|
- "src/backend/base/langflow/initial_setup/**"
|
|
- "src/backend/base/langflow/components/**"
|
|
- "src/backend/base/langflow/services/**"
|
|
- "src/backend/base/langflow/custom/**"
|
|
- "src/backend/base/langflow/api/v1/chat.py"
|
|
- "src/frontend/src/pages/MainPage/**"
|
|
- "src/frontend/src/utils/reactflowUtils.ts"
|
|
- "src/frontend/tests/extended/features/**"
|
|
- "src/backend/base/langflow/custom/**"
|
|
- "src/backend/base/langflow/graph/**"
|
|
|
|
components:
|
|
- "src/frontend/src/components/**"
|
|
- "src/frontend/src/modals/**"
|
|
- "src/frontend/src/pages/FlowPage/**"
|
|
- "src/frontend/src/shared/**"
|
|
- "src/frontend/src/hooks/**"
|
|
- "src/frontend/src/CustomNodes/**"
|
|
- "src/frontend/src/style/**"
|
|
- "src/frontend/src/utils/styleUtils.ts"
|
|
- "src/frontend/tests/core/features/**"
|
|
- "src/frontend/tests/core/integrations/**"
|
|
- "src/frontend/tests/core/regression/**"
|
|
- "src/frontend/tests/extended/integrations/**"
|
|
- "src/frontend/tests/extended/features/**"
|
|
- "src/frontend/tests/extended/regression/**"
|
|
- "src/backend/base/langflow/custom/**"
|
|
- "src/backend/base/langflow/schema/**"
|
|
- "src/backend/base/langflow/graph/**"
|
|
- "src/backend/base/langflow/utils/**"
|
|
- "src/backend/base/langflow/custom/**"
|
|
- "src/backend/base/langflow/components/**"
|
|
- "src/backend/base/langflow/initial_setup/**"
|
|
- "src/backend/base/langflow/serialization/**"
|
|
|
|
workspace:
|
|
- "src/backend/base/langflow/inputs/**"
|
|
- "src/frontend/src/components/core/parameterRenderComponent/**"
|
|
- "src/frontend/src/CustomNodes/**"
|
|
- "src/frontend/src/modals/**"
|
|
- "src/frontend/src/style/**"
|
|
- "src/frontend/src/CustomEdges/**"
|
|
- "src/frontend/src/utils/reactflowUtils.ts"
|
|
- "src/frontend/src/utils/buildUtils.ts"
|
|
- "src/frontend/tests/core/features/**"
|
|
- "src/frontend/tests/core/unit/**"
|
|
- "src/frontend/tests/extended/features/**"
|
|
- "src/frontend/tests/core/regression/**"
|
|
|
|
api:
|
|
- "src/backend/base/langflow/api/**"
|
|
- "src/frontend/src/controllers/**"
|
|
- "src/frontend/tests/core/features/**"
|
|
- "src/frontend/tests/extended/features/**"
|
|
- "src/frontend/tests/extended/regression/**"
|
|
|
|
database:
|
|
- "src/backend/base/langflow/services/database/**"
|
|
- "src/backend/base/langflow/alembic/**"
|
|
- "src/frontend/src/controllers/**"
|
|
- "src/frontend/tests/core/features/**"
|
|
- "src/frontend/tests/extended/features/**"
|