Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only run special CI when on CI, not locally #3019

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions test/helpers/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,9 @@ def skip_unless_ci_cron
skip 'This test only runs as part of the CI cron workflow'
end

# If in a CI (non local dev) context, skip unless operating within the
# special CI context. When in a local dev context or in a special CI context,
# permit the test(s) to run.
# skip unless operating within the special CI context
def skip_unless_special_ci
return if ENV.fetch('CI', nil).nil? || ENV.fetch('SPECIAL_CI', nil)
return if ENV.fetch('SPECIAL_CI', nil)

skip 'This test only runs as part of the special CI workflow'
end
Expand Down
Loading