-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: wrap tilt ci tests in script to handle logs (#3933)
* ci: wrap tilt ci tests in script to handle logs * ci: add tiltfile upload to integration gh action * ci: handle ci-only changes in integration action * refactor: rename test resources in tilt for easier filtering * chore: rename integration action test step
- Loading branch information
Showing
6 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
|
||
ARGS_STRING="" | ||
for app in "$@"; do | ||
ARGS_STRING+=" --test $app" | ||
done | ||
IFS=' ' read -r -a ARGS <<< "$ARGS_STRING" | ||
|
||
tilt --file "${REPO_ROOT}/dev/Tiltfile" ci -- "${ARGS[@]}" \ | ||
| tee "${REPO_ROOT}/dev/.e2e-tilt.log" \ | ||
| grep -- '^\s*test-.* │' | ||
status=${PIPESTATUS[0]} | ||
|
||
if [[ $status -eq 0 ]]; then | ||
echo "Tilt CI passed" | ||
fi | ||
|
||
exit "$status" |