Add server

This commit is contained in:
Antonio Andelic 2022-11-04 13:48:46 +00:00
parent 98d3b4a835
commit 5f7b7a8a33

View File

@ -10,7 +10,36 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch: workflow_dispatch:
workflow_call: workflow_call:
jobs: jobs:
KeeperJepsenRelease: #KeeperJepsenRelease:
# runs-on: [self-hosted, style-checker]
# steps:
# - name: Set envs
# run: |
# cat >> "$GITHUB_ENV" << 'EOF'
# TEMP_PATH=${{runner.temp}}/keeper_jepsen
# REPO_COPY=${{runner.temp}}/keeper_jepsen/ClickHouse
# EOF
# - name: Clear repository
# run: |
# sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
# - name: Check out repository code
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Jepsen Test
# run: |
# sudo rm -fr "$TEMP_PATH"
# mkdir -p "$TEMP_PATH"
# cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
# cd "$REPO_COPY/tests/ci"
# python3 jepsen_check.py keeper
# - name: Cleanup
# if: always()
# run: |
# docker ps --quiet | xargs --no-run-if-empty docker kill ||:
# docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
# sudo rm -fr "$TEMP_PATH"
ServerJepsenRelease:
runs-on: [self-hosted, style-checker] runs-on: [self-hosted, style-checker]
steps: steps:
- name: Set envs - name: Set envs
@ -32,7 +61,7 @@ jobs:
mkdir -p "$TEMP_PATH" mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH" cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci" cd "$REPO_COPY/tests/ci"
python3 keeper_jepsen_check.py python3 jepsen_check.py keeper
- name: Cleanup - name: Cleanup
if: always() if: always()
run: | run: |