Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

複数バージョンのNode.jsでテストするようにする & 新しめのNode.jsで動かなかったのを修正 #9

Merged
merged 4 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading