File tree Expand file tree Collapse file tree 4 files changed +34
-20
lines changed
GreptimeDB.Ingester.IntegrationTests
GreptimeDB.Ingester.Tests Expand file tree Collapse file tree 4 files changed +34
-20
lines changed Original file line number Diff line number Diff line change @@ -54,26 +54,40 @@ jobs:
5454 runs-on : ubuntu-latest
5555 needs : build
5656
57- services :
58- greptimedb :
59- image : greptime/greptimedb:v1.0.0-beta.4
60- ports :
61- - 4000:4000
62- - 4001:4001
63- - 4002:4002
64- - 4003:4003
65- options : >-
66- --health-cmd "curl -f http://localhost:4000/health || exit 1"
67- --health-interval 10s
68- --health-timeout 5s
69- --health-retries 5
70-
7157 steps :
7258 - name : Checkout
7359 uses : actions/checkout@v6
7460 with :
7561 submodules : recursive
7662
63+ - name : Start GreptimeDB
64+ run : |
65+ docker run -d \
66+ -p 4000:4000 \
67+ -p 4001:4001 \
68+ -p 4002:4002 \
69+ -p 4003:4003 \
70+ --name greptimedb \
71+ greptime/greptimedb:v1.0.0-beta.4 standalone start \
72+ --http-addr 0.0.0.0:4000 \
73+ --rpc-bind-addr 0.0.0.0:4001 \
74+ --mysql-addr 0.0.0.0:4002 \
75+ --postgres-addr 0.0.0.0:4003
76+
77+ - name : Wait for GreptimeDB
78+ run : |
79+ for i in {1..30}; do
80+ if curl -sf http://localhost:4000/health; then
81+ echo "GreptimeDB is ready"
82+ exit 0
83+ fi
84+ echo "Waiting for GreptimeDB... ($i/30)"
85+ sleep 2
86+ done
87+ echo "GreptimeDB failed to start"
88+ docker logs greptimedb
89+ exit 1
90+
7791 - name : Setup .NET
7892 uses : actions/setup-dotnet@v5
7993 with :
Original file line number Diff line number Diff line change 2020 <PackageVersion Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 8.0.0" />
2121 <PackageVersion Include =" Microsoft.Extensions.Configuration.Binder" Version =" 8.0.1" />
2222
23- <!-- Testing -->
24- <PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" 17.12.0 " />
25- <PackageVersion Include =" xunit" Version =" 2.9.3 " />
26- <PackageVersion Include =" xunit.runner.visualstudio" Version =" 2.8.2 " />
23+ <!-- Testing (xunit v3) -->
24+ <PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" 18.0.1 " />
25+ <PackageVersion Include =" xunit.v3 " Version =" 1.0.1 " />
26+ <PackageVersion Include =" xunit.runner.visualstudio" Version =" 3.1.5 " />
2727 <PackageVersion Include =" coverlet.collector" Version =" 6.0.4" />
2828 <PackageVersion Include =" FluentAssertions" Version =" 8.8.0" />
2929 <PackageVersion Include =" Moq" Version =" 4.20.72" />
Original file line number Diff line number Diff line change 1010
1111 <ItemGroup >
1212 <PackageReference Include =" Microsoft.NET.Test.Sdk" />
13- <PackageReference Include =" xunit" />
13+ <PackageReference Include =" xunit.v3 " />
1414 <PackageReference Include =" xunit.runner.visualstudio" />
1515 <PackageReference Include =" FluentAssertions" />
1616 </ItemGroup >
Original file line number Diff line number Diff line change 1010
1111 <ItemGroup >
1212 <PackageReference Include =" Microsoft.NET.Test.Sdk" />
13- <PackageReference Include =" xunit" />
13+ <PackageReference Include =" xunit.v3 " />
1414 <PackageReference Include =" xunit.runner.visualstudio" />
1515 <PackageReference Include =" coverlet.collector" PrivateAssets =" All" />
1616 <PackageReference Include =" FluentAssertions" />
You can’t perform that action at this time.
0 commit comments