feat: ✨ first commit of basic bundle gem
setup
Some checks failed
RuboCop / build (push) Failing after 3s
Some checks failed
RuboCop / build (push) Failing after 3s
This commit is contained in:
parent
3951ab4c8b
commit
b1de04fabb
14 changed files with 276 additions and 2 deletions
28
.forgejo/workflows/rubocop.yml
Normal file
28
.forgejo/workflows/rubocop.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: RuboCop
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Ruby 2.7
|
||||
uses: github.com/ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7
|
||||
- name: Cache gems
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-rubocop-
|
||||
- name: Install gems
|
||||
run: |
|
||||
bundle config path vendor/bundle
|
||||
bundle config set without 'default doc job cable storage ujs test db'
|
||||
bundle install --jobs 4 --retry 3
|
||||
- name: Run RuboCop
|
||||
run: bundle exec rubocop --parallel
|
Loading…
Add table
Add a link
Reference in a new issue