Merge pull request #738 from elanthia-online/update.rb-FileUtils.rm_r… #1196
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: Rubocop | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
paths: | |
- "**/*.lic" | |
- "**/*.rb" | |
- "lich.rbw" | |
pull_request: | |
paths: | |
- "**/*.lic" | |
- "**/*.rb" | |
- "lich.rbw" | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['3.4'] | |
name: Run Rubocop on Ruby ${{ matrix.ruby }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Install ruby gem dependencies with bundler | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- run: bundle install | |
- name: Rubocop | |
run: | | |
bundle exec rubocop |