Browse Source

fix(ci): validate e2e action make target

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
Moritz Johner 2 months ago
parent
commit
fe6acc6df1
1 changed files with 11 additions and 1 deletions
  1. 11 1
      .github/actions/e2e/action.yml

+ 11 - 1
.github/actions/e2e/action.yml

@@ -62,4 +62,14 @@ runs:
       shell: bash
       env:
         DOCKER_BUILD_ARGS: --load
-      run: make ${{ inputs.make-target }}
+        MAKE_TARGET: ${{ inputs.make-target }}
+      run: |
+        case "$MAKE_TARGET" in
+          test.e2e|test.e2e.v2)
+            make "$MAKE_TARGET"
+            ;;
+          *)
+            echo "unsupported make target: $MAKE_TARGET" >&2
+            exit 1
+            ;;
+        esac