-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd6a17b
commit 8269f8f
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ permissions: | |
|
||
on: | ||
push: | ||
branches: [ "LTS/2.3" ] | ||
tags: | ||
- v[0-9]+.* | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Compatibility testing | ||
|
||
on: | ||
push: | ||
branches: [ "LTS/2.3" ] | ||
tags: | ||
- v[0-9]+.* | ||
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 run --profile test-ci --package main --bin cnosdb -- run --config config/config_8902.toml -M singleton & | ||
until curl -s -G http:https://127.0.0.1:8902/api/v1/ping | ||
do | ||
sleep 5 | ||
done | ||
echo 'cnosdb successfully started' | ||
cargo run --package test | ||
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 run --profile test-ci --package main --bin cnosdb -- run --config config/config_8902.toml -M singleton & | ||
until curl -s -G http:https://127.0.0.1:8902/api/v1/ping | ||
do | ||
sleep 5 | ||
done | ||
echo 'cnosdb successfully started' | ||
cargo run --package test | ||
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 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:https://127.0.0.1:8902/api/v1/ping | ||
break | ||
} | ||
catch { | ||
Start-Sleep -Seconds 5 | ||
} | ||
} | ||
echo 'cnosdb successfully started' |