Skip to content

Commit 1b379e8

Browse files
authored
Merge pull request #9 from White-Green/nodejs-versions
複数バージョンのNode.jsでテストするようにする & 新しめのNode.jsで動かなかったのを修正
2 parents e6e113a + 661300c commit 1b379e8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
ruby-version: ['3.2', '3.1', '3.0']
16+
ruby-version: ['3.3', '3.2', '3.1']
17+
node-version: ['16', '18', '20', '22']
1718

1819
steps:
1920
- uses: actions/checkout@v3
2021
- name: Set up Ruby ${{ matrix.ruby-version }}
2122
uses: ruby/setup-ruby@v1
2223
with:
2324
ruby-version: ${{ matrix.ruby-version }}
25+
- name: Set up Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
2429
- name: Install dependencies
2530
run: bundle install
2631
- name: Run tests
27-
run: bundle exec rake
32+
run: bundle exec rake

lib/execjs/pcruntime/context_process_runtime.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ def post_request(socket_path, path, content_type = nil, body = nil)
197197
socket.write_timeout *= 100
198198

199199
request = Net::HTTP::Post.new(path)
200+
request['Host'] = 'localhost'
200201
request['Connection'] = 'close'
201202
unless content_type.nil?
202203
request['Content-Type'] = content_type

0 commit comments

Comments
 (0)