Sha256: 8e10b6e685316b0b51cdc2ebfb42c6b4a9676bf6179645cd47e560c0bfbbb1c7

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

name: CI

on:
  push:
  pull_request:
    types: [opened, reopened]

jobs:
  test:
    name: Tests
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby:
          - "2.5"
          - "2.6"
          - "2.7"
          - "3.0"
        bundler:
          - "1"
          - "2"
    env:
      BUNDLE_GEMFILE: gemfiles/bundler${{ matrix.bundler }}.gemfile
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler: ${{ matrix.bundler }}
        bundler-cache: true
    - name: Install bundler v1 # Even if we're testing bundler v2, we need v1 available because the fixture components have it in their Gemfile.locks
      run: gem install bundler -v "~> 1" --no-document
    - name: Install Graphviz
      run: sudo apt -qq install graphviz
    - name: Run tests
      run: bundle exec rake spec
  lint:
    name: Lint Ruby
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: 3.0
    - uses: reviewdog/action-rubocop@v1
      with:
        rubocop_version: 0.88.0
        filter_mode: nofilter
        fail_on_error: true
        rubocop_extensions: ""
        github_token: ${{ secrets.github_token }}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cobra_commander-0.11.0 .github/workflows/ci.yml