Skip to content

Commit

Permalink
test: skip verify example on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jan 20, 2025
1 parent 4295dd3 commit 1b1a8bf
Showing 1 changed file with 3 additions and 32 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,39 +25,10 @@ jobs:
bundler-cache: true
- run: "bundle exec rake"
- run: "bundle install && bundle exec rake spec"
if: matrix.ruby_version > '3.0'
working-directory: example/zoo-app
- run: "bundle install"
working-directory: example/animal-service
- run: "bundle exec rake pact:verify"
if: matrix.os != 'windows-latest'
working-directory: example/animal-service
- run: "ruby.exe -S pact verify --pact-helper ./spec/service_consumers/pact_helper.rb --pact-uri ../zoo-app/spec/pacts/zoo_app-animal_service.json"
if: matrix.os == 'windows-latest'
working-directory: example/animal-service
test_examples:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby_version: ["3.1", "3.2", "3.3"] # multi_xml-0.7.1 (dep of httparty) requires ruby version >= 3.1.2
os: ["ubuntu-latest","windows-latest","macos-latest"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- run: "bundle install"
working-directory: example/zoo-app
- run: "bundle exec rake spec"
working-directory: example/zoo-app
- run: "bundle install"
working-directory: example/animal-service
- run: "bundle exec rake pact:verify"
if: matrix.os != 'windows-latest'
working-directory: example/animal-service
- run: "ruby.exe -S pact verify --pact-helper ./spec/service_consumers/pact_helper.rb --pact-uri ../zoo-app/spec/pacts/zoo_app-animal_service.json"
if: matrix.os == 'windows-latest'
- run: "bundle install && bundle exec rake pact:verify"
if: matrix.os != 'windows-latest' && matrix.ruby_version > '3.0'
working-directory: example/animal-service
test-with-rack-2:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 1b1a8bf

Please sign in to comment.