Sha256: ae6c0566071b2d69e95961ed655e797ba0479be2b73ffc2953362c461cf60435

Contents?: true

Size: 1.63 KB

Versions: 2

Compression:

Stored size: 1.63 KB

Contents

name: CI
on: [push, pull_request]
jobs:
  test:
    name: Test on ruby ${{ matrix.ruby }} and rails ${{ matrix.rails }}
    runs-on: ubuntu-latest
    services:
      redis:
        image: redis
        ports: ['6379:6379']
        options: >-
          --health-cmd "redis-cli ping"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
    strategy:
      matrix:
        ruby: ['2.5', '2.6', '2.7']
        rails: ['5.2', '6.0.0', '6.1.0']
    env:
      SQLITE3_VERSION: 1.4.1
      REDIS_URL: redis://localhost:6379/0
      CI: true
    steps:
      - name: Setup memcached
        uses: KeisukeYamashita/memcached-actions@v1
      - name: Start MongoDB
        uses: supercharge/mongodb-github-action@1.3.0
        with:
          mongodb-version: 4.0
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Do some action caching
        uses: actions/cache@v1
        with:
          path: vendor/bundle
          key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ hashFiles('**/Gemfile.lock') }}
          restore-keys: |
            ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-
      - name: Set up Ruby ${{ matrix.ruby }}
        uses: actions/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: Install libpq-dev
        run: sudo apt-get -yqq install libpq-dev
      - name: Install bundler
        run: gem install bundler
      - name: Run Rake with Rails ${{ matrix.rails }}
        env:
          RAILS_VERSION: ${{ matrix.rails }}
        run: |
          bundle install --jobs 4 --retry 3
          bundle exec rake

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flipper-0.22.2 .github/workflows/ci.yml
flipper-0.22.1 .github/workflows/ci.yml