ci: twister: Check out west modules for test plan

This commit updates the twister workflow to check out the west modules
before running the test plan script for the pull request runs because
the twister test plan logic resolves the the module dependencies and
filters tests based on the local availability of the required modules.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2022-09-16 17:43:22 +09:00
commit fad899d2ad

View file

@ -76,7 +76,9 @@ jobs:
git log --pretty=oneline | head -n 10 git log --pretty=oneline | head -n 10
west init -l . || true west init -l . || true
west config manifest.group-filter -- +ci west config manifest.group-filter -- +ci
# no need for west update here west config --global update.narrow true
west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /github/cache/zephyrproject)
west forall -c 'git reset --hard HEAD'
- name: Generate Test Plan with Twister - name: Generate Test Plan with Twister
if: github.event_name == 'pull_request_target' if: github.event_name == 'pull_request_target'