mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
45 lines
1.4 KiB
YAML
45 lines
1.4 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
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
jobs:
|
|
# don't use dockerhub push because this image updates so rarely
|
|
WoboqCodebrowser:
|
|
runs-on: [self-hosted, style-checker]
|
|
timeout-minutes: 420 # the task is pretty heavy, so there's an additional hour
|
|
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: Check out repository code
|
|
uses: ClickHouse/checkout@v1
|
|
with:
|
|
clear-repository: true
|
|
submodules: 'true'
|
|
- name: Download json reports
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
path: ${{ env.IMAGES_PATH }}
|
|
- 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: |
|
|
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"
|