From 8f3d7128a85c3906a39e198d7db3d83f97669399 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 23 Apr 2025 21:19:08 +0200 Subject: [PATCH] fix test stage --- .drone.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index 92131fd..a35cf96 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,16 +46,17 @@ steps: echo "Postgres did not become available, aborting." exit 1 -# - name: test -# image: docker.io/library/elixir:1.18.3-otp-27 -# - wait_for_postgres -# environment: -# MIX_ENV: test -# TEST_POSTGRES_HOST: postgres -# commands: -# # Install hex package manager -# - mix local.hex --force -# # Fetch dependencies -# - mix deps.get -# # Run tests -# - mix test + - name: test + image: docker.io/library/elixir:1.18.3-otp-27 + depends_on: + - wait_for_postgres + environment: + MIX_ENV: test + TEST_POSTGRES_HOST: postgres + commands: + # Install hex package manager + - mix local.hex --force + # Fetch dependencies + - mix deps.get + # Run tests + - mix test