Skip to content

Commit

Permalink
Merge pull request #1504 from cucumber/fix-gha-cucumber-publish-token
Browse files Browse the repository at this point in the history
Ignore CUCUMBER_PUBLISH_TOKEN during cucumber tests
  • Loading branch information
luke-hill authored Jan 28, 2021
2 parents da38c03 + 9b750f2 commit 727c64f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/lib/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
end

Around do |_, block|
original_publish_token = ENV.delete('CUCUMBER_PUBLISH_TOKEN')
original_coloring = Cucumber::Term::ANSIColor.coloring?

block.call

Cucumber::Term::ANSIColor.coloring = original_coloring
ENV['CUCUMBER_PUBLISH_TOKEN'] = original_publish_token
end

Around('@force_legacy_loader') do |_, block|
Expand Down

0 comments on commit 727c64f

Please sign in to comment.