Sha256: 87e42973f41178e67e51da70794aaf77cf869b1ebd086bfb4c6353bf659f14c4

Contents?: true

Size: 1.48 KB

Versions: 8

Compression:

Stored size: 1.48 KB

Contents

name: build

on:
  pull_request:
  push:
  schedule:
  - cron: '29 6 * * 6'

jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        ruby: [ jruby, 2.5, 2.6, 2.7 ]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Cache dependencies
      uses: actions/cache@v1
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-${{ matrix.ruby }}-gems-
    - name: Install dependencies
      run: |
        bundle config path vendor/bundle
        bundle install --jobs 4 --retry 3
    - name: Run tests
      run: bundle exec rake test

  lint:
    needs: test
    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby: [ 2.7 ]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Cache dependencies
      uses: actions/cache@v1
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-${{ matrix.ruby }}-gems-
    - name: Install dependencies
      run: |
        bundle config path vendor/bundle
        bundle install --jobs 4 --retry 3
    - name: Run linter
      run: bundle exec rubocop

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
legitbot-1.5.1 .github/workflows/build.yml
legitbot-1.5.0 .github/workflows/build.yml
legitbot-1.4.5 .github/workflows/build.yml
legitbot-1.4.4 .github/workflows/build.yml
legitbot-1.4.3 .github/workflows/build.yml
legitbot-1.4.2 .github/workflows/build.yml
legitbot-1.4.1 .github/workflows/build.yml
legitbot-1.4.0 .github/workflows/build.yml