Skip to content

Commit

Permalink
add ability running tests on every commit into every pull request or …
Browse files Browse the repository at this point in the history
…run manually, after 34cc6c2 and #1409

Signed-off-by: Slach <bloodjazman@gmail.com>
  • Loading branch information
Slach committed May 7, 2024
1 parent bbbf66a commit 8b991fe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
build_master:
build_version:
name: Build branch
runs-on: ubuntu-latest
steps:
Expand Down
26 changes: 23 additions & 3 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: run_tests
on: workflow_dispatch
on:
pull_request:
branches:
- *
workflow_dispatch:
jobs:
run_tests:
name: Run Tests
Expand Down Expand Up @@ -32,15 +36,31 @@ jobs:
with:
driver: docker
container-runtime: containerd
kubernetes-version: v1.25.3
kubernetes-version: v1.30.0
cpus: max
memory: max

- name: Build clickhouse-operator locally without push to registry
run: |
minikube status
export CHO_RELEASE=$(cat release)
echo "current release=$CHO_RELEASE"
docker build -f dockerfile/operator/Dockerfile -t docker.io/${DOCKER_ORG}/clickhouse-operator:${CHO_RELEASE} --pull .
docker build -f dockerfile/metrics-exporter/Dockerfile -t docker.io/${DOCKER_ORG}/metrics-exporter:${CHO_RELEASE} --pull .
docker image save docker.io/${DOCKER_ORG}/clickhouse-operator:${CHO_RELEASE} -o operator.tar
docker image save docker.io/${DOCKER_ORG}/metrics-exporter:${CHO_RELEASE} -o metrics-exporter.tar
minikube image load operator.tar
minikube image load metrics-exporter.tar
- name: Run Tests
run: |
source ~/venv/qa/bin/activate
set -x
# bash -xe ./deploy/prometheus/create-prometheus.sh
# bash -xe ./deploy/minio/install-minio-operator.sh
# bash -xe ./deploy/minio/install-minio-tenant.sh
Expand Down

0 comments on commit 8b991fe

Please sign in to comment.