Skip to content

Commit 48d6ea2

Browse files
committed
run chronos tests in CI
1 parent 836afd4 commit 48d6ea2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ jobs:
156156
nim --version
157157
nimble --version
158158
nimble install -y --depsOnly
159-
rm -f nimble.lock
159+
160160
env NIMLANG=c nimble test
161161
env NIMLANG=cpp nimble test
162+
163+
nimble install chronos
164+
env NIMLANG=C nimble testChronos || true
165+
env NIMLANG=C nimble testChronos || true
166+

faststreams.nimble

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ task test, "Run all tests":
3636
for mode in ["-d:debug", "-d:release", "-d:danger"]:
3737
run backend & " " & threads & " " & mode, "tests/all_tests"
3838

39+
task testChronos, "Run chronos tests":
40+
# TODO chronos backend uses nested waitFor which is not supported
41+
for backend in ["-d:asyncBackend=chronos"]:
42+
for threads in ["--threads:off", "--threads:on"]:
43+
for mode in ["-d:debug", "-d:release", "-d:danger"]:
44+
run backend & " " & threads & " " & mode, "tests/all_tests"

0 commit comments

Comments
 (0)