forked from cnosdb/cnosdb
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (71 loc) · 2.51 KB
/
compatibility_test.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Compatibility testing
on:
workflow_dispatch: {}
jobs:
linux:
name: linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
TARGETPLATFORM="linux/amd64" bash ./.github/tools/install_dependencies.sh
- name: Run and test
shell: bash
run: |
set -e
cargo clippy --workspace --all-targets --features coordinator_e2e_test --features meta_e2e_test -- -D warnings
cargo run --profile test-ci --package main --bin cnosdb -- run --config config/config_8902.toml -M singleton &
until curl -s -G http://127.0.0.1:8902/api/v1/ping
do
sleep 5
done
echo 'cnosdb successfully started'
cargo run --package sqllogicaltests
macos:
name: macos
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
TARGETPLATFORM="darwin" bash ./.github/tools/install_dependencies.sh
- name: Run and test
shell: bash
run: |
set -e
cargo clippy --workspace --all-targets --features coordinator_e2e_test --features meta_e2e_test -- -D warnings
cargo run --profile test-ci --package main --bin cnosdb -- run --config config/config_8902.toml -M singleton &
until curl -s -G http://127.0.0.1:8902/api/v1/ping
do
sleep 5
done
echo 'cnosdb successfully started'
cargo run --package sqllogicaltests
windows:
name: windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
shell: bash
run: |
TARGETPLATFORM="windows/amd64" bash ./.github/tools/install_dependencies.sh
- name: Run and test
run: |
cargo clippy --workspace --all-targets --features coordinator_e2e_test --features meta_e2e_test -- -D warnings
cargo build --profile test-ci --package main --bin cnosdb
Copy-Item -Path .\target\test-ci\cnosdb.exe -Destination .\cnosdb.exe
cargo clean
.\cnosdb.exe run --config config/config_8902.toml -M singleton &
while ($true) {
try {
Invoke-WebRequest -Method GET -Uri http://127.0.0.1:8902/api/v1/ping
break
}
catch {
Start-Sleep -Seconds 5
}
}
echo 'cnosdb successfully started'
cargo run --package sqllogicaltests