-
Notifications
You must be signed in to change notification settings - Fork 75
ci: update CI workflow to run TypeScript tests with new script #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I think this should speed up our CI runs by a ton for a majority of PR's |
|
The testing CI is a bug introduced by goose and will be fixed soon hopefully but everything else works. |
this has been merged but their releases are hung up so we should be good soon for the failing CI. Although this Workflow update should solve our issues on other PR's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest using https://github.com/dorny/paths-filter instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces automatic diff-based detection for CI workflows, enabling selective test execution based on changed files to reduce CI run times. The implementation adds a bash script that intelligently detects which TypeScript tests need to run and updates the GitHub Actions workflow to utilize this detection mechanism.
Key Changes:
- Added selective test execution logic that runs only tests for changed modules
- Integrated GitHub Actions paths-filter to identify affected files
- Implemented fallback to full test suite when shared infrastructure changes
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| scripts/ts_test_auto.sh | New bash script implementing intelligent test selection based on changed files with support for shared infrastructure detection |
| .github/workflows/ci.yaml | Updated CI workflow to use paths-filter action and execute new test selection script with environment variables |
Description
Update CI workflow with automatic diff based detection for PR's so that only tests relating to affected files will be run in every PR greatly reducing the CI run time.
Type of Change
Testing & Validation
bun test)bun fmt)Related Issues