.github/workflows/rubocop.yml: Force to run bundle update #4
This file contains hidden or 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
# .github/workflows/rubocop.yml | |
name: RuboCop | |
on: | |
push: | |
branches: | |
- '**' # run on every branch | |
pull_request: | |
branches: | |
- '**' # run on every PR branch | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' # adjust to match your project | |
bundler-cache: true | |
- name: Workaround for pathname gem version mismatch | |
run: bundle update --bundler && bundle update --all | |
- name: Run RuboCop | |
run: bundle exec rubocop |