Sha256: 005c57d5bfaae0fdc4d8227518ce0b8f082ec029343ae1b29e87b8e8701496d5

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 KB

Contents

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: CI
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
jobs:
  lint:
    name: Rubocop
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "2.7"
      - name: Set up Gems
        run: |
          gem update --system --no-document
          gem install bundler --no-document
          bundle config set path .bundle
          bundle install -j 4
      - name: Lint
        run: bundle exec rubocop
  test:
    name: Test
    strategy:
      fail-fast: false
      matrix:
        ruby: ["3.0", "2.7", "2.6"]
    runs-on: ubuntu-latest
    services:
      redis:
        image: redis
        options: >-
          --health-cmd "redis-cli ping"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 6379:6379
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: Cache dependent gems
        uses: actions/cache@v1
        with:
          path: .bundle
          key: "local-bundle-ruby-${{ matrix.ruby }}-0001"
      - name: Install dependencies
        run: |
          gem update --system --no-document
          gem install bundler --no-document
          bundle config set path .bundle
          bundle install -j 4
      - name: Run tests
        run: bundle exec rspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_eval-0.3.0 .github/workflows/ci.yml