ClickHouse/.github/workflows/woboq.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.3 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
2021-12-22 10:50:26 +00:00
workflow_dispatch:
workflow_call:
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: Download json reports
uses: actions/download-artifact@v3
with:
path: ${{ env.IMAGES_PATH }}
2021-12-21 11:22:47 +00:00
- 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"