Sha256: a191564321c998483a1f31aeebd48f3bde2b5ab858f77bd823064baa7182aab0

Contents?: true

Size: 1.54 KB

Versions: 2

Compression:

Stored size: 1.54 KB

Contents

---
name: Tests
'on':
  push:
    branches:
    - master
  pull_request:
    branches:
    - master
jobs:
  test:
    runs-on: ubuntu-20.04
    services:
      postgres:
        image: postgres:12.4
        env:
          POSTGRES_PASSWORD: postgres
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
        ports:
        - 5432:5432
    strategy:
      fail-fast: false
      matrix:
        include:
        - ruby: 2.5.3
          gemfile: Gemfile.cucumber-1.3
        - ruby: 2.5.3
          gemfile: Gemfile.cucumber-2.4
        - ruby: 2.5.3
          gemfile: Gemfile.cucumber-3.0
        - ruby: 2.5.3
          gemfile: Gemfile.cucumber-3.1

        - ruby: 2.6.6
          gemfile: Gemfile.cucumber-4.1

        - ruby: 2.7.2
          gemfile: Gemfile.cucumber-5.3

        - ruby: 3.0.0
          gemfile: Gemfile.cucumber-4.1
        - ruby: 3.0.0
          gemfile: Gemfile.cucumber-5.3
        - ruby: 3.0.0
          gemfile: Gemfile.rails-7
    env:
      BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
    steps:
    - uses: actions/checkout@v2
    - name: Install ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: "${{ matrix.ruby }}"
    - name: Setup database
      run: |
        sudo apt-get install -y postgresql-client
        PGPASSWORD=postgres psql -c 'create database cucumber_factory_test;' -U postgres -p 5432 -h localhost
    - name: Bundle
      run: |
        gem install bundler:1.17.3
        bundle install --no-deployment
    - name: Run tests
      run: bundle exec rspec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber_factory-2.5.0 .github/workflows/test.yml
cucumber_factory-2.4.1 .github/workflows/test.yml