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:
parent
9926b90bf6
commit
fad899d2ad
1 changed files with 3 additions and 1 deletions
4
.github/workflows/twister.yaml
vendored
4
.github/workflows/twister.yaml
vendored
|
@ -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'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue