Sha256: 371fb703c52eed3cb7224a6ec2444e6f98dbb4a6f323f053d6a7ca1a7d7ae1a4

Contents?: true

Size: 1.39 KB

Versions: 8

Compression:

Stored size: 1.39 KB

Contents

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby Lint

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  lint:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ '2.6', '2.7', '3.0' ]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - uses: actions/cache@v2
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-${{ matrix.ruby }}-gem-deps-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-${{ matrix.ruby }}-gem-deps-
    - name: Install dependencies
      run: |
        bundle config path vendor/bundle
        bundle install
    - name: Run Lints
      run: bundle exec rubocop -P
    - uses: actions/cache@v2
      with:
        path: example/vendor/bundle
        key: ${{ runner.os }}-${{ matrix.ruby }}-example-deps-${{ hashFiles('example/**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-${{ matrix.ruby }}-example-deps-

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sober_swag-0.25.2 .github/workflows/lint.yml
sober_swag-0.25.1 .github/workflows/lint.yml
sober_swag-0.25.0 .github/workflows/lint.yml
sober_swag-0.24.1 .github/workflows/lint.yml
sober_swag-0.24.0 .github/workflows/lint.yml
sober_swag-0.23.0 .github/workflows/lint.yml
sober_swag-0.22.0 .github/workflows/lint.yml
sober_swag-0.21.0 .github/workflows/lint.yml