From f376526242d038f4a052a357a5b23fdf701dab26 Mon Sep 17 00:00:00 2001 From: White-Green <43771790+White-Green@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:52:33 +0900 Subject: [PATCH 1/4] add node-version matrix --- .github/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 85fe4fe..d7f06d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,8 @@ jobs: strategy: matrix: - ruby-version: ['3.2', '3.1', '3.0'] + ruby-version: ['3.3', '3.2', '3.1', '3.0'] + node-version: ['latest', '16', '18', '20', '22'] steps: - uses: actions/checkout@v3 @@ -21,7 +22,11 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} - name: Install dependencies run: bundle install - name: Run tests - run: bundle exec rake \ No newline at end of file + run: bundle exec rake From c59b768947b496256636196d91e221af74aae702 Mon Sep 17 00:00:00 2001 From: White-Green <43771790+White-Green@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:38:28 +0900 Subject: [PATCH 2/4] add Host header --- lib/execjs/pcruntime/context_process_runtime.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/execjs/pcruntime/context_process_runtime.rb b/lib/execjs/pcruntime/context_process_runtime.rb index d9a1ce0..e968692 100644 --- a/lib/execjs/pcruntime/context_process_runtime.rb +++ b/lib/execjs/pcruntime/context_process_runtime.rb @@ -197,6 +197,7 @@ def post_request(socket_path, path, content_type = nil, body = nil) socket.write_timeout *= 100 request = Net::HTTP::Post.new(path) + request['Host'] = 'localhost' request['Connection'] = 'close' unless content_type.nil? request['Content-Type'] = content_type From 32dce98b5abb51fb2ec5775423436f4caf411aa5 Mon Sep 17 00:00:00 2001 From: White-Green <43771790+White-Green@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:38:58 +0900 Subject: [PATCH 3/4] remove Ruby 3.0 from test matrix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7f06d6..c478eaf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - ruby-version: ['3.3', '3.2', '3.1', '3.0'] + ruby-version: ['3.3', '3.2', '3.1'] node-version: ['latest', '16', '18', '20', '22'] steps: From 661300cced11b9af6bf9846407bad98aca2019dc Mon Sep 17 00:00:00 2001 From: White-Green <43771790+White-Green@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:47:01 +0900 Subject: [PATCH 4/4] remove Node.js latest from test matrix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c478eaf..2d643f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: ruby-version: ['3.3', '3.2', '3.1'] - node-version: ['latest', '16', '18', '20', '22'] + node-version: ['16', '18', '20', '22'] steps: - uses: actions/checkout@v3