Skip to content

Commit

Permalink
ci: run test in ci process
Browse files Browse the repository at this point in the history
Signed-off-by: Phoeniix Zhao <[email protected]>
  • Loading branch information
Phoenix500526 committed Dec 22, 2023
1 parent 17b1334 commit 3ecc065
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/cases/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function test::ci::_start() {
log::info "controller started"
popd
log::info "starting xline cluster"
k8s::kubectl apply -f "$(dirname "${BASH_SOURCE[0]}")/manifests/cluster.yml" >/dev/null 2>&1
k8s::kubectl apply -f "$(dirname "${BASH_SOURCE[0]}")/manifests/cluster.yaml" >/dev/null 2>&1
k8s::kubectl::wait_resource_creation sts $_TEST_CI_STS_NAME
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3ecc065

Please sign in to comment.