Establish OpenCode compatibility certification corpus
Some checks failed
Some checks failed
This commit is contained in:
15
scripts/matrix_json.rb
Executable file
15
scripts/matrix_json.rb
Executable file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "json"
|
||||
|
||||
root = File.expand_path("..", __dir__)
|
||||
manifest = JSON.parse(File.read(File.join(root, "manifests/image-matrix.json")))
|
||||
matrix = manifest.fetch("public_ci").map do |target|
|
||||
{
|
||||
"id" => target.fetch("id"),
|
||||
"version" => target.fetch("version"),
|
||||
"image" => target.fetch("image")
|
||||
}
|
||||
end
|
||||
|
||||
puts JSON.generate("include" => matrix)
|
||||
Reference in New Issue
Block a user