Skip to content

Commit

Permalink
fix: [torrust#189] make 'Development checks' workflow fail if E2E tes…
Browse files Browse the repository at this point in the history
…ts fail

The workflow "Development checks" is not failing if E2E tests fail. This
fixes that problem.
  • Loading branch information
josecelano committed Jun 9, 2023
1 parent fbac73a commit b4c43da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/bin/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ wait_for_container_to_be_healthy() {
}

# Install tool to create torrent files
cargo install imdl
cargo install imdl || exit 1

cp .env.local .env
./bin/install.sh
cp .env.local .env || exit 1
./bin/install.sh || exit 1

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

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

# Run E2E tests with shared app instance
TORRUST_IDX_BACK_E2E_SHARED=true cargo test
TORRUST_IDX_BACK_E2E_SHARED=true cargo test || exit 1

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

0 comments on commit b4c43da

Please sign in to comment.