Skip to content

Commit 50cf086

Browse files
authored
chore: Fixes to CI (#181)
1 parent c1e0a9b commit 50cf086

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

.github/workflows/unit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ jobs:
5959
run: gem install --no-document toys
6060
- name: Test ${{ matrix.flags }}
6161
shell: bash
62+
env:
63+
MT_COMPAT: "true"
6264
run: toys ci ${{ matrix.flags }}

.toys/ci.rb

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ def run
5757
end
5858

5959
tool "deps-matrix" do
60-
static :puma_versions, ["4.0", "5.0", "6.0"]
61-
static :rack_versions, ["2.1", "3.0"]
60+
static :matrix, [
61+
{puma: "4.0", rack: "2.1"},
62+
{puma: "5.0", rack: "2.1"},
63+
{puma: "6.0", rack: "2.1"},
64+
{puma: "6.0", rack: "3.0"},
65+
]
6266

6367
include :exec, result_callback: :handle_result
6468
include :terminal
@@ -75,15 +79,13 @@ def handle_result result
7579
def run
7680
@errors = []
7781
::Dir.chdir context_directory
78-
puma_versions.each do |puma_version|
79-
rack_versions.each do |rack_version|
80-
name = "Puma #{puma_version} / Rack #{rack_version}"
81-
env = {
82-
"FF_DEPENDENCY_TEST_PUMA" => "~> #{puma_version}",
83-
"FF_DEPENDENCY_TEST_RACK" => "~> #{rack_version}",
84-
}
85-
exec_separate_tool ["test", "test/test_server.rb"], env: env, name: name
86-
end
82+
matrix.each do |versions|
83+
name = "Puma #{versions[:puma]} / Rack #{versions[:rack]}"
84+
env = {
85+
"FF_DEPENDENCY_TEST_PUMA" => "~> #{versions[:puma]}",
86+
"FF_DEPENDENCY_TEST_RACK" => "~> #{versions[:rack]}",
87+
}
88+
exec_separate_tool ["test", "test/test_server.rb"], env: env, name: name
8789
end
8890
@errors.each do |err|
8991
puts "Failed: #{err}", :red, :bold

.toys/conformance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def run
2828
exec ["git", "clone", github_url]
2929
end
3030
cd "functions-framework-conformance" do
31-
exec ["git", "pull"]
31+
exec ["git", "pull", "origin", "main"]
3232
exec ["go", "build"], chdir: "client"
3333
end
3434
end

0 commit comments

Comments
 (0)