Skip to content

Commit

Permalink
GITHUB_TOKEN guard so non github tests work locally again
Browse files Browse the repository at this point in the history
  • Loading branch information
williscool committed Dec 8, 2022
1 parent f8925fa commit a1d7b35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/release_manager_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ describe "ReleaseManager" do
ghrm = ReleaseManager::GithubReleaseManager.new("cnf-testsuite/release_manager")

# upsert a test release
ghrm.upsert_release
unless ENV["GITHUB_TOKEN"]?.nil?
ghrm.upsert_release
end

after_all do
unless ENV["GITHUB_TOKEN"]?.nil?
Expand Down

0 comments on commit a1d7b35

Please sign in to comment.