From 68302311c4e1e522db1412673971389ff24655c8 Mon Sep 17 00:00:00 2001
From: Phoeniix Zhao <Phoenix500526@163.com>
Date: Sat, 2 Dec 2023 18:16:20 +0800
Subject: [PATCH] ci: run test in ci process

Signed-off-by: Phoeniix Zhao <Phoenix500526@163.com>
---
 .github/workflows/ci.yml              | 15 +++++++++++++++
 tests/e2e/cases/manifests/cluster.yml |  3 ++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d6f1542f..70404396 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -45,6 +45,21 @@ jobs:
         with:
           version: v1.54.2
 
+  test:
+    name: Xline Operator Test
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout code
+      uses: actions/checkout@v3
+
+    - name: Set up Go
+      uses: actions/setup-go@v2
+      with:
+        go-version: ${{env.GO_VERSION}}
+
+    - name: Build and test
+      run: make test
+
   commit:
     name: Commit Message Validation
     runs-on: ubuntu-latest
diff --git a/tests/e2e/cases/manifests/cluster.yml b/tests/e2e/cases/manifests/cluster.yml
index f7450c85..9f95db83 100644
--- a/tests/e2e/cases/manifests/cluster.yml
+++ b/tests/e2e/cases/manifests/cluster.yml
@@ -3,7 +3,8 @@ kind: XlineCluster
 metadata:
   name: my-xline-cluster
 spec:
-  version: v0.6.0
+  version: v0.6.1
+  # TODO: Replace this image repo with ghcr.io when Xline 0.6.1 is ready
   image: phoenix500526/xline
   imagePullPolicy: IfNotPresent
   replicas: 3