Sha256: 8e06e67f2ff5d08a0410495cc4d8a1f6db86e5f16ff7ed9f1fa6a84bc6c2e198

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

name: Lint and test

on:
  push:
    branches:
      - main
    tags:
      - '!*'
  pull_request:
    paths:
      - '!*.MD'
      - '!*.md'

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Ruby 2.7
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: 2.7

    - name: Generate lockfile for cache key
      run: bundle lock

    - name: Cache gems
      uses: actions/cache@v1
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-rspec-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-rspec-

    - name: Install gems
      run: |
        bundle config path vendor/bundle
        bundle install --jobs 4 --retry 3

    - name: Run RuboCop
      uses: reviewdog/action-rubocop@v1
      with:
        rubocop_version: gemfile
        rubocop_extensions: rubocop-rails:gemfile rubocop-rspec:gemfile
        github_token: ${{ secrets.github_token }}
        reporter: github-pr-check # Default is github-pr-check

    - name: Run RSpec
      run: bundle exec rake spec
      env:
        CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
permisi-0.1.5 .github/workflows/ci.yml
permisi-0.1.4 .github/workflows/ci.yml
permisi-0.1.3 .github/workflows/ci.yml
permisi-0.1.2 .github/workflows/ci.yml