Sha256: d0292e115b44161b77773002e37a6c4e98c25b9390fa1f6c91fae7339f8b5427

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

name: Main
on:
  pull_request:
    branches:
    - main
  push:
    branches:
    - main
jobs:
  ci:
    name: CI
    strategy:
      fail-fast: false
      matrix:
        ruby: [jruby, 2.4, 2.5, 2.6, 2.7, 3.0]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@main
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - uses: actions/cache@v1
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-gems-
    - run: bundle config path vendor/bundle
    - run: bundle config set without 'checks:docs'
      if: matrix.ruby != 3.0
    - run: bundle install --jobs 4 --retry 3
    - run: bundle exec rspec
    - run: bundle exec rubocop
      if: matrix.ruby == 3.0
    - run: bundle exec yard doctest
      if: matrix.ruby == 3.0
    - run: |
        BUNDLE_GEMFILE=benchmarks/Gemfile bundle install --jobs 4 --retry 3
        BUNDLE_GEMFILE=benchmarks/Gemfile bundle exec ruby benchmarks/benchmarks.rb
      if: matrix.ruby == '2.7' || matrix.ruby == '3.0'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
memo_wise-0.4.0 .github/workflows/main.yml
memo_wise-0.3.0 .github/workflows/main.yml