test refc in CI in Nim 2.0 and later (#55)

This commit is contained in:
tersec 2024-02-14 01:08:57 +00:00 committed by GitHub
parent d55d3a86d7
commit 7640cc6aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -25,8 +25,10 @@ proc build(args, path: string) =
proc run(args, path: string) =
build args & " -r", path
if (NimMajor, NimMinor) > (1, 6):
build args & " --mm:refc -r", path
import strutils
from std/strutils import endsWith
task test, "Run tests":
for path in listFiles("tests"):