mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
* test(e2e): include E2E tests in PR CI * Update e2e.yml to fix report * tests(e2e): video and trace on failure * tests(e2e): unflaky assertion exec * tests(e2e): slowMo 100ms
36 lines
632 B
Bash
Executable File
36 lines
632 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
KESTRA_DOCKER_IMAGE_TO_TEST="kestra/kestra:develop-no-plugins"
|
|
|
|
# Parse arguments
|
|
while [[ $# -gt 0 ]]; do
|
|
case $1 in
|
|
--kestra-docker-image-to-test)
|
|
KESTRA_DOCKER_IMAGE_TO_TEST="$2"
|
|
shift 2
|
|
;;
|
|
*)
|
|
echo "Unknown argument: $1"
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
cleanup() {
|
|
echo "Stop the backend"
|
|
cd ./tests/e2e
|
|
./stop-e2e-tests-backend.sh
|
|
cd ../..
|
|
}
|
|
trap 'cleanup' EXIT
|
|
|
|
cd ./tests/e2e
|
|
|
|
echo "Start backend"
|
|
./start-e2e-tests-backend.sh --kestra-docker-image-to-test $KESTRA_DOCKER_IMAGE_TO_TEST
|
|
cd ../..
|
|
|
|
echo "Run tests"
|
|
npm run test:e2e-without-starting-backend
|
|
|
|
exit 0 |