You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/04/18 23:37:51 UTC

[groovy] branch master updated: tweak to test for CI robustness of RMI tests when run via Google actions

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new b68816c  tweak to test for CI robustness of RMI tests when run via Google actions
b68816c is described below

commit b68816cb04f873e2dc69ec2b4bfea9ae2a630137
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Apr 19 09:37:45 2021 +1000

    tweak to test for CI robustness of RMI tests when run via Google actions
---
 .../main/groovy/org/apache/groovy/gradle/SharedConfiguration.groovy    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/buildSrc/src/main/groovy/org/apache/groovy/gradle/SharedConfiguration.groovy b/buildSrc/src/main/groovy/org/apache/groovy/gradle/SharedConfiguration.groovy
index 9e80f4e..e047d19 100644
--- a/buildSrc/src/main/groovy/org/apache/groovy/gradle/SharedConfiguration.groovy
+++ b/buildSrc/src/main/groovy/org/apache/groovy/gradle/SharedConfiguration.groovy
@@ -87,7 +87,8 @@ class SharedConfiguration {
     }
 
     private static boolean detectCi(File file, Logger logger) {
-        def isCi = file.absolutePath =~ /teamcity|jenkins|hudson|travis/
+        // home/runner/work is path for Github actions
+        def isCi = file.absolutePath =~ $/teamcity|jenkins|hudson|/home/runner/work/|travis/$
         logger.lifecycle "Detected ${isCi ? 'Continuous Integration environment' : 'development environment'}"
         isCi
     }