1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
name: Code Style Checks
on:
pull_request:
branches:
- master
paths-ignore:
- 'README.md'
- 'CHANGELOG.markdown'
push:
branches:
- master
paths-ignore:
- 'README.md'
- 'CHANGELOG.markdown'
jobs:
rubocop:
name: Rubocop
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
strategy:
fail-fast: false
matrix:
os:
- ubuntu
ruby:
- "3.3"
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Rubocop
run: bundle exec rubocop
|