Commit 34e5b4c
authored
chore: optimize CI to decouple lint from build and skip unnecessary jobs (#214)
* chore: optimize CI to decouple lint from
build and skip unnecessary jobs
- Added a new input `run_lint_only` to the CI workflow to handle documentation-only changes.
- Updated the change detection logic to set `run_lint_only` when no service-impacting changes are detected.
- Modified the CI configuration to skip builds and tests when only documentation changes are present, improving efficiency.
- Enhanced the output summaries to include documentation change detection results.
* chore: refine CI workflow by removing redundant documentation path
- Removed the redundant 'docs/**/*.md' inclusion from the CI change detection configuration, streamlining the documentation linting process.
* chore: update CI workflow to trigger on main branch pushes
- Modified the CI configuration to run on pushes to the main branch, enhancing the workflow's responsiveness to changes in the primary development branch.
* chore: consolidate Tauri E2E test workflows into a single reusable configuration
- Introduced a new reusable workflow for Tauri E2E tests that encompasses all providers (official, embedded, CrabNebula), streamlining the CI process.
- Removed individual workflows for CrabNebula and embedded providers to reduce redundancy and improve maintainability.
- Updated the main CI configuration to utilize the new consolidated workflow, enhancing efficiency by reducing the number of runners required for testing.
* chore: update CI workflow to improve concurrency handling
- Removed tag trigger from the CI configuration to simplify event handling.
- Adjusted concurrency cancellation logic to only cancel in-progress jobs for non-pull request events, enhancing workflow efficiency.
* chore: update CI workflow descriptions for clarity
- Revised the description for the `run_lint_only` input to specify that it applies when no service-affecting changes are detected.
- Updated the summary output to reflect the new description, enhancing clarity in the CI process.
* refactor: streamline CI workflow result handling
- Introduced helper functions to format test results and check outcomes for providers in the CI workflow, improving code readability and maintainability.
- Consolidated result logging for official, embedded, and CrabNebula providers to reduce redundancy and enhance clarity in the output summaries.
* fix: ensure cleanup commands in CI workflows handle errors gracefully
- Updated PowerShell commands in the CI workflow to append '|| true', allowing the cleanup process to continue even if the specified processes are not found, enhancing robustness in both Windows and non-Windows environments.
* test(e2e): enhance Tauri E2E logging configuration
- Updated the logging exclusion list in the Tauri E2E configuration to include the new logging.tauri-driver.spec.ts file.
- Refactored logging directory retrieval in embedded and tauri-driver specs to utilize a new helper function for improved log directory naming based on the driver provider.1 parent 2a0550f commit 34e5b4c
9 files changed
Lines changed: 294 additions & 1129 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| 115 | + | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
| |||
113 | 122 | | |
114 | 123 | | |
115 | 124 | | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| |||
134 | 144 | | |
135 | 145 | | |
136 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
137 | 154 | | |
138 | 155 | | |
139 | 156 | | |
| 157 | + | |
140 | 158 | | |
141 | 159 | | |
142 | 160 | | |
143 | 161 | | |
144 | 162 | | |
145 | 163 | | |
| 164 | + | |
146 | 165 | | |
147 | 166 | | |
148 | 167 | | |
| |||
155 | 174 | | |
156 | 175 | | |
157 | 176 | | |
| 177 | + | |
158 | 178 | | |
159 | 179 | | |
160 | 180 | | |
161 | 181 | | |
162 | 182 | | |
| 183 | + | |
163 | 184 | | |
164 | 185 | | |
165 | 186 | | |
| 187 | + | |
166 | 188 | | |
167 | 189 | | |
168 | 190 | | |
| |||
174 | 196 | | |
175 | 197 | | |
176 | 198 | | |
| 199 | + | |
0 commit comments