Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Artifacts = "1"
CoverageTools = "1"
Downloads = "1.6.0"
HTTP = "0.8, 0.9, 1"
JSON = "0.21"
JSON = "1"
MbedTLS = "0.6, 0.7, 1"
SHA = "0.7.0"
Scratch = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/codecov_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function export_codecov_json(fcs::Vector{FileCoverage}, output_file="coverage.js
codecov_data = to_codecov_json(fcs)

open(output_file, "w") do io
JSON.print(io, codecov_data)
JSON.json(io, codecov_data)
end

@info "Codecov JSON exported to: $output_file"
Expand Down
4 changes: 2 additions & 2 deletions src/codecovio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function add_ci_to_kwargs(kwargs::Dict)
build = ENV["BUILD_BUILDID"],
)
elseif haskey(ENV, "GITHUB_ACTION") # GitHub Actions
event_path = open(JSON.Parser.parse, ENV["GITHUB_EVENT_PATH"])
event_path = open(JSON.parse, ENV["GITHUB_EVENT_PATH"])
ref = ENV["GITHUB_REF"]
if startswith(ref, "refs/heads/")
branch = ref[12:end]
Expand Down Expand Up @@ -308,7 +308,7 @@ end
function upload_to_s3(; s3url, fcs)
startswith(s3url, "https://") || error("Invalid codecov response: $s3url")
# Upload to S3
request = HTTP.put(s3url; body=json(to_json(fcs)),
request = HTTP.put(s3url; body=JSON.json(to_json(fcs)),
header=Dict("Content-Type" => "application/json",
"x-amz-storage-class" => "REDUCED_REDUNDANCY"))
@debug "Result of submission:" * mask_token(String(request))
Expand Down
2 changes: 1 addition & 1 deletion src/coveralls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function prepare_request(fcs::Vector{FileCoverage}, local_env::Bool, git_info=qu
data["service_name"] = "github"
data["git"] = parse_git_info(git_info)

event_path = open(JSON.Parser.parse, ENV["GITHUB_EVENT_PATH"])
event_path = open(JSON.parse, ENV["GITHUB_EVENT_PATH"])
github_pr_info = get(event_path, "pull_request", Dict())
github_pr = get(github_pr_info, "number", "")
github_pr::Union{AbstractString, Integer}
Expand Down
2 changes: 1 addition & 1 deletion src/coveralls_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function export_coveralls_json(fcs::Vector{FileCoverage}, output_file="coveralls
end

open(output_file, "w") do io
JSON.print(io, coveralls_data)
JSON.json(io, coveralls_data)
end

@info "Coveralls JSON exported to: $output_file"
Expand Down
Loading