From 09915c80cf226c88588adcc4988cb09762b8053d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Horv=C3=A1th=20Istv=C3=A1n?= <dzctir@inf.elte.hu> Date: Tue, 3 May 2022 19:30:20 +0200 Subject: [PATCH] Skip builds if tests fail --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50a180b..f4d0b9c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,8 +81,8 @@ get-activation-file: artifacts: when: always paths: - # This is exported to allow viewing the Coverage Report in detail if needed - - $UNITY_DIR/$TEST_PLATFORM-coverage/ + # This is exported to allow viewing the Coverage Report in detail if needed + - $UNITY_DIR/$TEST_PLATFORM-coverage/ reports: junit: - $UNITY_DIR/$TEST_PLATFORM-junit-results.xml @@ -110,6 +110,9 @@ test-editmode-with-junit-reports: artifacts: paths: - $UNITY_DIR/Builds/ + needs: + - job: test-playmode-with-junit-reports + - job: test-editmode-with-junit-reports rules: - if: '$CI_COMMIT_REF_NAME == "main"' -- GitLab