Skip to content

Commit

Permalink
Merge pull request #19 from ishi720/github_actions_rubocop
Browse files Browse the repository at this point in the history
GitHub ActionsでRuboCopを実行する #18
  • Loading branch information
ishi720 authored May 28, 2024
2 parents 46be958 + 0cbe0af commit c65a37a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/RuboCop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: RuboCop

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
rubocop:
name: RuboCop
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: bundle exec rubocop

0 comments on commit c65a37a

Please sign in to comment.