Skip to content

Commit

Permalink
add rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
modosc committed Dec 11, 2023
1 parent 649076f commit 7bc1f94
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand All @@ -35,3 +34,22 @@ jobs:
bundle exec appraisal install
- name: Run tests
run: bundle exec appraisal rake
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2" # Not needed with a .ruby-version file
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/cloudflare-rails.gemspec') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Rubocop
run: rubocop

0 comments on commit 7bc1f94

Please sign in to comment.