Skip to content

Commit 88f432b

Browse files
committed
ci: test plugin pacts on windows
1 parent ca19f86 commit 88f432b

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
ruby-version: ${{ matrix.ruby_version }}
2525
bundler-cache: true
2626
- uses: you54f/pact-cli@main
27-
if: matrix.os != 'windows-latest'
2827
- run: pact-cli plugin install --yes https://github.com/mefellows/pact-matt-plugin/releases/tag/v0.1.1
29-
if: matrix.os != 'windows-latest'
3028
- name: Test Pact-Ruby Specs
3129
run: "bundle exec rake"
3230
- name: Test Pact-Ruby Zoo App Specs
@@ -37,10 +35,12 @@ jobs:
3735
run: "bundle install && bundle exec rake pact:verify"
3836
if: matrix.os != 'windows-latest' && matrix.ruby_version > '3.0'
3937
working-directory: example/animal-service
40-
- name: Test Pact-Ruby v2 Specs
38+
- name: Test Pact-Ruby v2 spec:v2
4139
run: "bundle exec rake spec:v2"
42-
- name: Test Pact-Ruby v2 pact:specs
40+
- name: Test Pact-Ruby v2 pact:v2:spec
4341
run: "bundle exec rake pact:v2:spec"
42+
- name: Test Pact-Ruby v2 pact:v2:verify
43+
run: "bundle exec rake pact:v2:verify"
4444
- name: Test Pact-Ruby v2 Zoo App Specs
4545
run: "bundle install && bundle exec rake spec:v2"
4646
if: matrix.ruby_version > '3.0'
@@ -64,9 +64,7 @@ jobs:
6464
ruby-version: ${{ matrix.ruby_version }}
6565
bundler-cache: true
6666
- uses: you54f/pact-cli@main
67-
if: matrix.os != 'windows-latest'
6867
- run: pact-cli plugin install --yes https://github.com/mefellows/pact-matt-plugin/releases/tag/v0.1.1
69-
if: matrix.os != 'windows-latest'
7068
- run: "bundle exec appraisal install"
7169
- run: "bundle exec appraisal rack-2 rake"
7270
- run: "bundle exec appraisal rack-2 rake spec:v2"

spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_async_message_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require "pact/v2/rspec"
44

5-
RSpec.describe 'Test matt plugin sync message loading', :pact_v2, skip_windows: true do
5+
RSpec.describe 'Test matt plugin sync message loading', :pact_v2 do
66
has_plugin_async_message_pact_between "matttcpconsumer", "matttcpprovider"
77

88
let(:matt_message) do

spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_http_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require 'net/http'
55
require 'json'
66
require 'faraday'
7-
RSpec.describe 'HTTP transport', :pact_v2, skip_windows: true do
7+
RSpec.describe 'HTTP transport', :pact_v2 do
88
has_plugin_http_pact_between 'myconsumer', 'myprovider'
99

1010
let(:matt_request) { { 'request' => { 'body' => 'hello' } } }

spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_sync_message_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require "pact/v2/rspec"
44

5-
RSpec.describe 'Test matt plugin sync message loading', :pact_v2, skip_windows: true do
5+
RSpec.describe 'Test matt plugin sync message loading', :pact_v2 do
66
has_plugin_sync_message_pact_between "myconsumer", "myprovider"
77

88
let(:matt_message) do

0 commit comments

Comments
 (0)