ClickHouse/.github/workflows/woboq.yml

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

45 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
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: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
2021-12-21 11:22:47 +00:00
- 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
2021-12-21 11:22:47 +00:00
- name: Cleanup
if: always()
run: |
2022-05-16 19:19:57 +00:00
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH"