Sha256: 426c3cf9cb757e386a9df4f42b4cca2f02f4601283b42911785aaf75d88ca7d9

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 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: Ruby

on:
  pull_request:
    paths-ignore:
      - 'README.md'
  push:
    paths-ignore:
      - 'README.md'

jobs:
  test:
    services:
      redis:
        image: redis:alpine
        ports: ["6379:6379"]
        options: --entrypoint redis-server

    runs-on: ubuntu-latest
    strategy:
      matrix:
        rails_version: ['6.1.0', '7.0', '7.1.0']
        ruby-version: ['3.0', '3.1', '3.2', '3.3']
    steps:
    - uses: actions/checkout@v4
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      env:
        RAILS_VERSION: "${{ matrix.rails_version }}"
    - name: Install Graphviz
      run: sudo apt-get install graphviz
    - name: Run code lint
      run: bundle exec rubocop
      env:
        RAILS_VERSION: "${{ matrix.rails_version }}"
    - name: Run tests
      run: bundle exec rspec
      env:
        REDIS_URL: redis://localhost:6379/1
        RAILS_VERSION: "${{ matrix.rails_version }}"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gush-4.0.0 .github/workflows/ruby.yml