Skip to content

Commit b4c43da

Browse files
committed
fix: [#189] make 'Development checks' workflow fail if E2E tests fail
The workflow "Development checks" is not failing if E2E tests fail. This fixes that problem.
1 parent fbac73a commit b4c43da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/bin/run-e2e-tests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ wait_for_container_to_be_healthy() {
3636
}
3737

3838
# Install tool to create torrent files
39-
cargo install imdl
39+
cargo install imdl || exit 1
4040

41-
cp .env.local .env
42-
./bin/install.sh
41+
cp .env.local .env || exit 1
42+
./bin/install.sh || exit 1
4343

4444
# Start E2E testing environment
45-
./docker/bin/e2e-env-up.sh
45+
./docker/bin/e2e-env-up.sh || exit 1
4646

4747
wait_for_container_to_be_healthy torrust-mysql-1 10 3
4848
# todo: implement healthchecks for tracker and backend and wait until they are healthy
@@ -54,7 +54,7 @@ sleep 20s
5454
docker ps
5555

5656
# Run E2E tests with shared app instance
57-
TORRUST_IDX_BACK_E2E_SHARED=true cargo test
57+
TORRUST_IDX_BACK_E2E_SHARED=true cargo test || exit 1
5858

5959
# Stop E2E testing environment
6060
./docker/bin/e2e-env-down.sh

0 commit comments

Comments
 (0)