deivid-rodriguez/pry-byebug

View on GitHub
.github/workflows/ubuntu.yml

Summary

Maintainability
Test Coverage
name: ubuntu

on:
  pull_request:

  push:
    branches:
      - master

jobs:
  test:
    runs-on: ubuntu-18.04

    strategy:
      matrix:
        ruby: [2.7.6, 3.0.4, 3.1.2]

    env:
      BUNDLE_PATH: .bundle

    steps:
      - uses: actions/checkout@v2

      - name: Setup ruby
        uses: eregon/use-ruby-action@master
        with:
          ruby-version: ${{ matrix.ruby }}

      - uses: actions/cache@v1
        with:
          path: ${{ env.BUNDLE_PATH }}
          key: dependencies-${{ hashFiles('Gemfile.lock') }}
          restore-keys: dependencies-

      - name: Install dependencies
        run: |
          gem install bundler -v 2.3.20
          bundle install --jobs 3 --retry 3

      - name: Run tests
        run: RUBYOPT="-E UTF-8" bundle exec rake