-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (45 loc) · 1.45 KB
/
test_clickhouse_version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: test_clickhouse_version
run-name: ${{ github.workflow }}_${{ inputs.clickhouse_version }}_${{ inputs.id || github.run_number }}
on:
workflow_dispatch:
inputs:
clickhouse_version:
description: 'ClickHouse version'
required: true
type: string
id:
description: 'Run identifier'
required: false
type: string
default: ""
jobs:
test_integration:
runs-on: ubuntu-latest
env:
CLICKHOUSE_VERSION: ${{ inputs.clickhouse_version }}
CLICKHOUSE_VERSIONS: ${{ inputs.clickhouse_version }}
NEED_SETUP: true
steps:
- uses: actions/checkout@v4
- name: Check the input tag to ${{ inputs.clickhouse_version }}
continue-on-error: true
run: |
docker manifest inspect chtools/test-clickhouse:${{ inputs.clickhouse_version }}
echo "NEED_SETUP=false" >> $GITHUB_ENV
- name: login to dockerhub
if: env.NEED_SETUP == 'true'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and push necessary images
if: env.NEED_SETUP == 'true'
uses: docker/bake-action@v5
with:
files: tests/bake.hcl
push: true
- uses: ./.github/actions/setup_dependencies
with:
python-version: "3.11"
- name: run integration tests
run: make test-integration