Skip to content

Commit

Permalink
Merge #192: Make development checks workflow fail if E2E test fails
Browse files Browse the repository at this point in the history
b4c43da fix: [#189] make 'Development checks' workflow fail if E2E tests fail (Jose Celano)

Pull request description:

  The workflow "Development checks" is not failing if E2E tests fail. This fixes that problem.

Top commit has no ACKs.

Tree-SHA512: ab4b21a495f7f25c0a3172ed08fe31ccf398598053a1384bc4d707a28c6c99066113bd2d6e9868ca162cefd67944674767460e8afae3bb7a5017a6402d623cf5
  • Loading branch information
josecelano committed Jun 9, 2023
2 parents fbac73a + b4c43da commit 8737e92
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 8737e92

Please sign in to comment.