Skip to content

Commit e95653f

Browse files
committed
Update tests
1 parent 796ecb8 commit e95653f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,54 @@ jobs:
138138
# shellcheck disable=SC2046
139139
docker rm -f $(docker ps -a -q) ||:
140140
sudo rm -fr "$TEMP_PATH"
141+
BuilderDebRelease:
142+
needs: [DockerHubPush]
143+
runs-on: [self-hosted, builder]
144+
steps:
145+
- name: Set envs
146+
run: |
147+
cat >> "$GITHUB_ENV" << 'EOF'
148+
TEMP_PATH=${{runner.temp}}/build_check
149+
IMAGES_PATH=${{runner.temp}}/images_path
150+
REPO_COPY=${{runner.temp}}/build_check/ClickHouse
151+
CACHES_PATH=${{runner.temp}}/../ccaches
152+
CHECK_NAME=ClickHouse build check (actions)
153+
BUILD_NAME=package_release
154+
EOF
155+
- name: Download changed images
156+
uses: actions/download-artifact@v2
157+
with:
158+
name: changed_images
159+
path: ${{ env.IMAGES_PATH }}
160+
- name: Clear repository
161+
run: |
162+
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
163+
- name: Check out repository code
164+
uses: actions/checkout@v2
165+
with:
166+
fetch-depth: 0 # otherwise we will have no info about contributors
167+
- name: Build
168+
run: |
169+
git -C "$GITHUB_WORKSPACE" submodule sync --recursive
170+
git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
171+
sudo rm -fr "$TEMP_PATH"
172+
mkdir -p "$TEMP_PATH"
173+
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
174+
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$CHECK_NAME" "$BUILD_NAME"
175+
- name: Upload build URLs to artifacts
176+
if: ${{ success() || failure() }}
177+
uses: actions/upload-artifact@v2
178+
with:
179+
name: ${{ env.BUILD_URLS }}
180+
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
181+
- name: Cleanup
182+
if: always()
183+
run: |
184+
# shellcheck disable=SC2046
185+
docker kill $(docker ps -q) ||:
186+
# shellcheck disable=SC2046
187+
docker rm -f $(docker ps -a -q) ||:
188+
sudo rm -fr "$TEMP_PATH"
141189
BuilderDebSplitted:
142190
needs: [DockerHubPush]
143191
runs-on: [self-hosted, builder]

0 commit comments

Comments
 (0)