lib/gemika/env.rb in gemika-0.4.0 vs lib/gemika/env.rb in gemika-0.4.1
- old
+ new
@@ -86,9 +86,15 @@
def travis?
!!ENV['TRAVIS']
end
##
+ # Return whether this process is running within a Github Actions build.
+ def github?
+ ENV.key?('GITHUB_WORKFLOW')
+ end
+
+ ##
# Creates an hash that enumerates entries in order of insertion.
#
# @!visibility private
#
def new_ordered_hash