Sha256: 9986c19cd09e3e6a9ce463e71ba93f9aa82c68b85ecc5aaff802f9dcc2d892d5

Contents?: true

Size: 1.79 KB

Versions: 8

Compression:

Stored size: 1.79 KB

Contents

name: Test

on: [push, pull_request]

jobs:
  test:
    runs-on: "ubuntu-latest"
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      fail-fast: false
      matrix:
        ruby_version: ["2.2", "2.7"]
        experimental: [false]
        include:
          - ruby_version: "3.0"
            experimental: true
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby_version }}
      - run: "bundle install"
      - if: failure()
        run: cat /opt/hostedtoolcache/Ruby/2.2.10/x64/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/approvals-0.0.25/gem_make.out && exit 1
      - run: "bundle exec rake"
  pact:
    runs-on: "ubuntu-latest"
    continue-on-error: true
    strategy:
      fail-fast: false
      matrix:
        feature: [""]
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: "2.7"
      - run: "bundle install"
      - run: |
          rm -rf spec/pacts/*
          bundle exec rspec spec/service_providers/
          VERBOSE=true bundle exec rake pact:publish:pactflow
        env:
          PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_PACT_OSS_TOKEN }}
          PACT_BROKER_FEATURES: ${{ matrix.feature }}
          TEST_FEATURE: ${{ matrix.feature }}
  can-i-deploy:
    runs-on: "ubuntu-latest"
    needs: pact
    steps:
      - run: |
          docker run --rm \
           -e PACT_BROKER_BASE_URL=https://pact-oss.pactflow.io \
           -e PACT_BROKER_TOKEN \
            pactfoundation/pact-cli:latest \
            broker can-i-deploy \
            --pacticipant "Pact Broker Client" --version ${GITHUB_SHA} \
            --pacticipant "Pact Broker" --latest master
        env:
          PACT_BROKER_TOKEN: ${{ secrets.PACTFLOW_PACT_OSS_TOKEN }}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact_broker-client-1.63.0 .github/workflows/test.yml
pact_broker-client-1.62.1 .github/workflows/test.yml
pact_broker-client-1.62.0 .github/workflows/test.yml
pact_broker-client-1.61.1 .github/workflows/test.yml
pact_broker-client-1.61.0 .github/workflows/test.yml
pact_broker-client-1.60.0 .github/workflows/test.yml
pact_broker-client-1.59.0 .github/workflows/test.yml
pact_broker-client-1.58.0 .github/workflows/test.yml