* Update CI about ruby & action versions #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Style Checks | |
on: | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
rubocop: | |
name: Rubocop | |
if: "contains(github.event.commits[0].message, '[ci skip]') == false" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu | |
ruby: | |
- "3.0" | |
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 |