-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.68 KB
/
cloud-integration.yml
File metadata and controls
47 lines (39 loc) · 1.68 KB
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
name: Cloud Integration
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 1-5"
pull_request:
paths:
- "crates/clickhouse-cloud-api/src/**"
- "crates/clickhouse-cloud-api/tests/**"
- "crates/clickhouse-cloud-api/Cargo.toml"
- "Cargo.lock"
permissions:
contents: read
concurrency:
group: cloud-integration-${{ github.ref }}
cancel-in-progress: false
jobs:
cloud-integration:
name: Cloud integration tests
runs-on: ubuntu-latest
environment: cloud-integration
env:
CLICKHOUSE_CLOUD_API_KEY: ${{ secrets.CLICKHOUSE_CLOUD_API_KEY }}
CLICKHOUSE_CLOUD_API_SECRET: ${{ secrets.CLICKHOUSE_CLOUD_API_SECRET }}
CLICKHOUSE_CLOUD_TEST_ORG_ID: ${{ secrets.CLICKHOUSE_CLOUD_TEST_ORG_ID }}
CLICKHOUSE_CLOUD_TEST_PROVIDER: ${{ secrets.CLICKHOUSE_CLOUD_TEST_PROVIDER }}
CLICKHOUSE_CLOUD_TEST_REGION: ${{ secrets.CLICKHOUSE_CLOUD_TEST_REGION }}
CLICKHOUSE_CLOUD_TEST_TIMEOUT_CREATE_SECS: ${{ vars.CLICKHOUSE_CLOUD_TEST_TIMEOUT_CREATE_SECS || '1800' }}
CLICKHOUSE_CLOUD_TEST_TIMEOUT_DELETE_SECS: ${{ vars.CLICKHOUSE_CLOUD_TEST_TIMEOUT_DELETE_SECS || '900' }}
CLICKHOUSE_CLOUD_TEST_TIMEOUT_STEADY_STATE_SECS: ${{ vars.CLICKHOUSE_CLOUD_TEST_TIMEOUT_STEADY_STATE_SECS || '1800' }}
RUST_TEST_THREADS: 1
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run cloud integration suite
run: cargo test -p clickhouse-cloud-api --test integration_test -- --ignored --nocapture
- name: Run cloud Postgres integration suite
run: cargo test -p clickhouse-cloud-api --test integration_postgres_test -- --ignored --nocapture