ci: Update TypeScript CI workflow to select tests if test files change (#4840)

* Update TypeScript CI workflow: streamline suite selection and dependency setup

- Set default test suites to an empty array to dynamically determine suites based on changes.
- Ensure compact JSON output for test suites.
- Simplify Node.js and Playwright setup by using built-in caching and custom actions.
- Add UV_CACHE_DIR environment variable for caching.

* Expand test coverage paths in changes-filter.yaml configuration
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-11-25 19:30:13 -03:00 committed by GitHub
commit dd92d9c10c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 7 deletions

View file

@ -22,6 +22,7 @@ starter-projects:
- "src/backend/base/langflow/initial_setup/**"
- "src/frontend/src/pages/MainPage/**"
- "src/frontend/src/utils/reactflowUtils.ts"
- "src/frontend/tests/extended/features/**"
components:
- "src/frontend/src/components/**"
@ -33,6 +34,12 @@ components:
- "src/frontend/src/style/**"
- "src/frontend/src/utils/styleUtils.ts"
- "src/backend/base/langflow/components/**"
- "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/**"
workspace:
- "src/backend/base/langflow/inputs/**"
@ -43,12 +50,21 @@ workspace:
- "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/**"