feat: add wescale wesql cluster workflow #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Ubuntu Docker Cluster" | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
inputs: | |
wescale_image_tag: | |
description: "WeScale Image Tag" | |
required: true | |
default: "0.3.0" | |
wesql_image_tag: | |
description: "WeSQL Server Image Tag" | |
required: true | |
default: "8.0.35-6.alpha10.20240918.g18ad68b.27" | |
jobs: | |
setup: | |
name: "Ubuntu Docker Cluster" | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the code | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Start MySQL Server | |
run: | | |
./examples/wesql-server/start_mysql_server.sh | |
- name: Compile source | |
timeout-minutes: 30 | |
run: | | |
make failpoint-enable | |
make build | |
make failpoint-disable | |
- name: Start WeScale | |
run: | | |
cd ./examples/wesql-server && ./examples/wesql-server/init_single_node_cluster.sh | |
- name: Build and Run container | |
run: | | |
docker logs mysql-server |