Commit 49d4a97
authored
🤖 Add workflow_dispatch test_filter to CI workflow (#423)
_Generated with `cmux`_
Allow manual CI workflow triggers to specify an optional test_filter
input that gets passed to both unit and integration test jobs. This
enables running specific tests via GitHub Actions UI without requiring a
full CI run.
## Usage
When manually triggering the CI workflow through GitHub Actions UI, you
can now specify a `test_filter` input:
- **Leave empty**: Run all tests (default behavior)
- **File path pattern**: `workspace` or `tests/specific.test.ts` -
matches file paths
- **Test name pattern**: `-t "pattern"` - filters by test description
## Compatibility
Both `bun test` and `jest` support:
- File path patterns as positional arguments
- `-t` flag for test name pattern matching
The filter is applied identically to both unit tests (`bun test`) and
integration tests (`jest`).1 parent feb4da9 commit 49d4a97
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
0 commit comments