-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
ci: only run jobs when relevant files have been changed #12006
ci: only run jobs when relevant files have been changed #12006
Commits on Oct 14, 2023
-
ci: only run jobs when relevant files have been changed
- e.g. don't run E2E tests if only UI or only Docs have changed - or don't run UI CI when UI has not chaged - use [`tj-actions/changed-files`](https://github.com/tj-actions/changed-files) action for this - the most popular and full featured one I could find - run `changed-files` in its own job that must run before all other jobs - have it `output` booleans for specific changes -- limit all the `changed_files` nuances, naming, syntax, etc to that one job - job `outputs` are also needed for skipping other jobs, as step outputs can't be directly accessed - see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs and https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context - have other jobs specify it in their `needs` and then skip if not needed with `if` - use multi-output variant of `changed-files` YAML directive - so can check e2e vs docs vs UI etc - use `any_modified` as that includes added, copied, modified, renamed, and deleted (ACMRD) - `any_changed` does not include deletions NOTE: I realized after that `docs` isn't a job, `lint` is, so there's gonna be some follow-up commits - and well need to test anyway too - will also include the `all` list _after_ testing, since it would make everything run Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9a4ac6c - Browse repository at this point
Copy the full SHA 9a4ac6cView commit details -
- also tiny renames Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aafd917 - Browse repository at this point
Copy the full SHA aafd917View commit details -
add workaround for status checks
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2b36c20 - Browse repository at this point
Copy the full SHA 2b36c20View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 21682cf - Browse repository at this point
Copy the full SHA 21682cfView commit details -
add some more relevant files to the lists
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9dce4cb - Browse repository at this point
Copy the full SHA 9dce4cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for d278e8b - Browse repository at this point
Copy the full SHA d278e8bView commit details -
add empty line in UI to test that UI check runs
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dbe0b79 - Browse repository at this point
Copy the full SHA dbe0b79View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b17c223 - Browse repository at this point
Copy the full SHA b17c223View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4536f54 - Browse repository at this point
Copy the full SHA 4536f54View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6de853 - Browse repository at this point
Copy the full SHA c6de853View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3086e78 - Browse repository at this point
Copy the full SHA 3086e78View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ebd7d7 - Browse repository at this point
Copy the full SHA 7ebd7d7View commit details -
- list merging is not supported in YAML natively, but `changed-files` appears to support it? https://github.com/tj-actions/changed-files/blob/2a10bef1b42044172f2e64d40beeb8fbad792438/test/changed-files.yml#L8-L11 Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 188b6d4 - Browse repository at this point
Copy the full SHA 188b6d4View commit details -
fix
needs
forlint
andcodegen
- both can run independently of each other and independently of tests - they should fail fast if the other one fails though, I suppose - otherwise this breaks some of the checks, since if tests are skipped, then codegen and lint are skipped too - or, well, that's my hypothesis at least -- will test by pushing this Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9aa097e - Browse repository at this point
Copy the full SHA 9aa097eView commit details -
- so now only lint should run... Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b506ea - Browse repository at this point
Copy the full SHA 6b506eaView commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3c7d127 - Browse repository at this point
Copy the full SHA 3c7d127View commit details -
add empty line to test Codegen
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 34671d7 - Browse repository at this point
Copy the full SHA 34671d7View commit details -
This reverts commit 34671d7. Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c50d621 - Browse repository at this point
Copy the full SHA c50d621View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 98e80c1 - Browse repository at this point
Copy the full SHA 98e80c1View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e183ca9 - Browse repository at this point
Copy the full SHA e183ca9View commit details -
add empty line to test units, e2e, lint
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 22b9216 - Browse repository at this point
Copy the full SHA 22b9216View commit details -
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3940d44 - Browse repository at this point
Copy the full SHA 3940d44View commit details -
run all jobs when ci-build.yaml is changed
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a51064c - Browse repository at this point
Copy the full SHA a51064cView commit details
Commits on Oct 16, 2023
-
add Makefile + tasks.yaml as well
Signed-off-by: Anton Gilgur <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 13e0c02 - Browse repository at this point
Copy the full SHA 13e0c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01aa788 - Browse repository at this point
Copy the full SHA 01aa788View commit details