From d23e49a447ee1d95d61de2696894e59df7de55ef Mon Sep 17 00:00:00 2001 From: haxscramper Date: Wed, 10 Mar 2021 15:32:57 +0300 Subject: [PATCH 1/2] [REPO] Run tests under orc/arc in CI --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b254065..b4ce0f48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,13 @@ jobs: - name: Run tests shell: bash - run: nimble test + run: | + nimble test + if [[ '${{ matrix.branch }}' != 'version-1-0' ]]; then + nimble test --gc:orc + nimble test --gc:arc + + fi - name: Build docs if: matrix.branch == 'devel' From ec67a4da36cf2a24cedc70d2f9beca77b32dd3c4 Mon Sep 17 00:00:00 2001 From: haxscramper Date: Thu, 25 Mar 2021 11:40:35 +0300 Subject: [PATCH 2/2] [FIX] Move CI logic inside nimble --- .github/workflows/ci.yml | 7 +------ fusion.nimble | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4ce0f48..833abf8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,12 +108,7 @@ jobs: - name: Run tests shell: bash run: | - nimble test - if [[ '${{ matrix.branch }}' != 'version-1-0' ]]; then - nimble test --gc:orc - nimble test --gc:arc - - fi + nimble testMulti - name: Build docs if: matrix.branch == 'devel' diff --git a/fusion.nimble b/fusion.nimble index 4fc24fe8..efc5b360 100644 --- a/fusion.nimble +++ b/fusion.nimble @@ -16,3 +16,9 @@ task docs, "": exec "nim c -r -d:fusionDocJs src/fusion/docutils " & srcDir # C exec "nim c -r src/fusion/docutils " & srcDir + +task testMulti, "Execute test suite with different GC options": + exec "nimble test" + when (NimMajor, NimMinor) >= (1, 2): + exec "nimble test --gc:arc" + exec "nimble test --gc:orc"