chore(deps): update ruby/setup-ruby action to v1.321.0 #564
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby_version: ["3.3", "3.4", "4.0"] | |
| os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby_version }} | |
| bundler-cache: true | |
| - run: "bundle exec rake" | |
| pact: | |
| runs-on: "ubuntu-latest" | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| feature: [""] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.0 | |
| with: | |
| ruby-version: "4.0.5" | |
| bundler-cache: true | |
| # Publish to old and new account until we can disable the old account | |
| - name: Generate and publish pacts | |
| run: | | |
| rm -rf spec/pacts/* | |
| bundle exec rspec spec/service_providers/ | |
| bundle exec rake pact:publish:pactflow_pact_foundation | |
| env: | |
| PACT_BROKER_TOKEN_PACT_FOUNDATION: ${{ secrets.PACT_BROKER_TOKEN_PACT_FOUNDATION }} | |
| PACT_BROKER_FEATURES: ${{ matrix.feature }} | |
| TEST_FEATURE: ${{ matrix.feature }} | |
| pact-v2: | |
| runs-on: "ubuntu-latest" | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| feature: [""] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.0 | |
| with: | |
| ruby-version: "4.0.5" | |
| bundler-cache: true | |
| - name: Generate and publish pacts | |
| run: | | |
| rm -rf spec/pacts/* | |
| bundle exec rake pact:v2:spec | |
| can-i-deploy: | |
| runs-on: "ubuntu-latest" | |
| needs: pact | |
| steps: | |
| - run: | | |
| docker run --rm \ | |
| -e PACT_BROKER_BASE_URL=https://pact-foundation.pactflow.io \ | |
| -e PACT_BROKER_TOKEN \ | |
| pactfoundation/pact-cli:latest \ | |
| broker can-i-deploy \ | |
| --pacticipant "Pact Broker Client" --version ${GITHUB_SHA} \ | |
| --pacticipant "Pact Broker" --branch master | |
| env: | |
| PACT_BROKER_TOKEN: ${{ secrets.PACT_BROKER_TOKEN_PACT_FOUNDATION }} |