mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: WoboqBuilder
|
|
env:
|
|
# Force the stdout and stderr streams to be unbuffered
|
|
PYTHONUNBUFFERED: 1
|
|
|
|
concurrency:
|
|
group: woboq
|
|
on: # yamllint disable-line rule:truthy
|
|
schedule:
|
|
- cron: '0 */18 * * *'
|
|
workflow_dispatch:
|
|
jobs:
|
|
# don't use dockerhub push because this image updates so rarely
|
|
WoboqCodebrowser:
|
|
runs-on: [self-hosted, style-checker]
|
|
steps:
|
|
- name: Set envs
|
|
run: |
|
|
cat >> "$GITHUB_ENV" << 'EOF'
|
|
TEMP_PATH=${{runner.temp}}/codebrowser
|
|
REPO_COPY=${{runner.temp}}/codebrowser/ClickHouse
|
|
IMAGES_PATH=${{runner.temp}}/images_path
|
|
EOF
|
|
- name: Clear repository
|
|
run: |
|
|
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'true'
|
|
- name: Codebrowser
|
|
run: |
|
|
sudo rm -fr "$TEMP_PATH"
|
|
mkdir -p "$TEMP_PATH"
|
|
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
|
|
cd "$REPO_COPY/tests/ci" && python3 codebrowser_check.py
|
|
- name: Cleanup
|
|
if: always()
|
|
run: |
|
|
# shellcheck disable=SC2046
|
|
docker kill $(docker ps -q) ||:
|
|
# shellcheck disable=SC2046
|
|
docker rm -f $(docker ps -a -q) ||:
|
|
sudo rm -fr "$TEMP_PATH"
|