Skip to content

Commit

Permalink
Merge pull request #9 from White-Green/nodejs-versions
Browse files Browse the repository at this point in the history
複数バージョンのNode.jsでテストするようにする & 新しめのNode.jsで動かなかったのを修正
  • Loading branch information
White-Green authored Nov 1, 2024
2 parents e6e113a + 661300c commit 1b379e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ jobs:

strategy:
matrix:
ruby-version: ['3.2', '3.1', '3.0']
ruby-version: ['3.3', '3.2', '3.1']
node-version: ['16', '18', '20', '22']

steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
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
run: bundle exec rake
1 change: 1 addition & 0 deletions lib/execjs/pcruntime/context_process_runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b379e8

Please sign in to comment.