Skip to content

chore(deps): update dependency ruby to v4.0.6 #570

chore(deps): update dependency ruby to v4.0.6

chore(deps): update dependency ruby to v4.0.6 #570

Workflow file for this run

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@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1.314.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@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1.314.0
with:
ruby-version: "4.0.6"
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@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1.314.0
with:
ruby-version: "4.0.6"
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 }}