From 0df50956332d137492b8540cb6f9a8847892e74a Mon Sep 17 00:00:00 2001
From: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Date: Mon, 29 Jan 2024 14:03:34 +0100
Subject: [PATCH] fix: check emptyness of GO_TEST_IMAGE

with component based new template, `GO_TEST_IMAGE` can't be null but can
be empty.

So instead of checkig if it's, let's check it's empty

closes #34

Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
---
 templates/gitlab-ci-golang.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/gitlab-ci-golang.yml b/templates/gitlab-ci-golang.yml
index 49768c4..7f27199 100644
--- a/templates/gitlab-ci-golang.yml
+++ b/templates/gitlab-ci-golang.yml
@@ -512,7 +512,7 @@ go-test:
       - "$GO_PROJECT_DIR/reports/go-coverage.*"
   rules:
     # if $GO_TEST_IMAGE set
-    - if: '$GO_TEST_IMAGE == null'
+    - if: '$GO_TEST_IMAGE == ""'
       when: never
     - !reference [.test-policy, rules]
 
@@ -540,7 +540,7 @@ go-build-test:
       - "$GO_PROJECT_DIR/reports/go-coverage.*"
   rules:
     # if $GO_TEST_IMAGE not set
-    - if: '$GO_TEST_IMAGE == null'
+    - if: '$GO_TEST_IMAGE == ""'
 
 go-ci-lint:
   extends: .go-base
-- 
GitLab