Sha256: 7ef0b543c8b78ccfebebe2c52787b5f5f14b2b126092a42e44dace048b1cfc7a

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

name: Main
on:
  pull_request:
    branches:
    - main
  push:
    branches:
    - main
jobs:
  ci:
    name: CI
    strategy:
      fail-fast: false
      matrix:
        # Due to https://github.com/actions/runner/issues/849, we have to use
        # quotes for '3.0'. Without quotes, CI runs 3.1.
        ruby: [ jruby, truffleruby, 2.5, 2.6, 2.7, '3.0', 3.1 ]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    # Conditionally configure bundler via environment variables as advised
    #   * https://github.com/ruby/setup-ruby#bundle-config
    - name: Set bundler environment variables
      run: |
        echo "BUNDLE_WITHOUT=checks" >> $GITHUB_ENV
      if: matrix.ruby != 3.1

    # Use 'bundler-cache: true' instead of actions/cache as advised:
    #   * https://github.com/actions/cache/blob/main/examples.md#ruby---bundler
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true

    - run: bundle exec rspec

    - run: bundle exec rubocop
      if: matrix.ruby == 3.1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scan_left-0.3.1 .github/workflows/tests.yml