ci: optimize test workflows for directory-specific changes (#265)#266
ci: optimize test workflows for directory-specific changes (#265)#2667fighter wants to merge 7 commits intofedimint:mainfrom
Conversation
|
|
@7fighter Check out the changeset.yml to understand how the react-native building works. You will need a mac os runner for building the ios, so that should be a seperate task, keep rest tasks on self hosted linux runners. |
|
@alexlwn123 Should we run all the tests if any of the workflow changes? This event happens rarely, but ig the tests should be checked before we merge. |
Agree, seems like a good sanity check. |
|
@7fighter Please run all the tests if any of the workflow changes. |
MrImmortal09
left a comment
There was a problem hiding this comment.
The submodules isn't getting initialised properly in a few checks.
| uses: ./.github/actions/build-react-native | ||
| timeout-minutes: 90 |
There was a problem hiding this comment.
the react-native-android tries to build android(pnpm ubrn:android) but fails due to absense of fedimint-sdk-ffi, and the react-native-ios tries to build both android and ios bindings. The android bindings are thus build twice.

This PR implements directory-specific test triggering to optimize CI resources as requested in #265.
Changes
dorny/paths-filtertopull-request.ymlto detect changes incore,web, andreact-nativedirectories.verify.ymlto accept these detections as inputs and conditionalize job execution.lintruns for any relevant changes while heavy builds are scoped to their specific domains.Verification (Tested on fork)
Fixes #265