diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 139a53d..8b66a49 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,5 +63,7 @@ jobs: # Run Tests - name: Run All Unit Tests + env: + NO_COLOR: ${{ matrix.os == 'windows-latest' && '1' || '' }} run: | cd test && rake ci diff --git a/test/rakefile_helper.rb b/test/rakefile_helper.rb index 66030ac..8c9adba 100644 --- a/test/rakefile_helper.rb +++ b/test/rakefile_helper.rb @@ -80,7 +80,7 @@ module RakefileHelpers raise "Cannot find Config File #{config_target}" end - $colour_output = $proj[:project][:colour] + $colour_output = $proj[:project][:colour] && !ENV['NO_COLOR'] end def configure_clean