ClickHouse/.github/workflows/woboq.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

2021-12-21 11:22:47 +00:00
name: WoboqBuilder
env:
# Force the stdout and stderr streams to be unbuffered
PYTHONUNBUFFERED: 1
concurrency:
2021-12-21 11:23:17 +00:00
group: woboq
2021-12-21 11:22:47 +00:00
on: # yamllint disable-line rule:truthy
schedule:
2021-12-22 07:19:53 +00:00
- cron: '0 */18 * * *'
2021-12-22 10:50:26 +00:00
workflow_dispatch:
2021-12-21 11:22:47 +00:00
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: Check out repository code
2022-12-23 16:54:19 +00:00
uses: ClickHouse/checkout@v1
2021-12-21 11:22:47 +00:00
with:
clear-repository: true
2021-12-21 11:22:47 +00:00
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
2021-12-21 11:22:47 +00:00
- 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"