Sha256: 035cd2b8a0b1fd5fd749bdec7d017ec62aa5a908038aa833867cbe799ce9d7f0

Contents?: true

Size: 1.63 KB

Versions: 2

Compression:

Stored size: 1.63 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"
      - 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

2 entries across 2 versions & 1 rubygems

Version Path
pact_broker-client-1.57.0 .github/workflows/test.yml
pact_broker-client-1.56.0 .github/workflows/test.yml