Skip to content

Commit e183ceb

Browse files
committed
Run unit tests for Ruby on Windows
1 parent 5990c6a commit e183ceb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci-ruby.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,15 @@ jobs:
157157
unit-test:
158158
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
159159
needs: check_workflow
160-
runs-on: ubuntu-latest
160+
runs-on: ${{ matrix.os }}
161161
strategy:
162162
fail-fast: false
163163
matrix:
164164
ruby: [ '2.7.6', '3.1.2', 'jruby-9.4.0.0', 'truffleruby-22.3.0' ]
165+
os: ['ubuntu-latest']
166+
include:
167+
- ruby: 2.7.6
168+
os: windows-latest
165169
steps:
166170
- name: Checkout source tree
167171
uses: actions/checkout@v2

rb/spec/unit/selenium/webdriver/socket_poller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module WebDriver
2424
describe SocketPoller do
2525
before(:context) do
2626
@server_thread = Thread.new do
27-
server = TCPServer.open(9250)
27+
server = TCPServer.open(Platform.localhost, 9250)
2828
Thread.current.thread_variable_set(:server, server)
2929
loop { server.accept.close }
3030
end

0 commit comments

Comments
 (0)