Skip to content

feat: Add version command line argument #423

feat: Add version command line argument

feat: Add version command line argument #423

Workflow file for this run

name: RuboCop
on:
push:
branches: [ devel ]
paths:
- '*.gemspec'
- 'Gemfile'
- 'Gemfile.lock'
- 'bin/tetra'
- 'lib/**.rb'
- 'spec/**.rb'
- '**.rb'
- '.github/workflows/rubocop.yml'
- '.rubocop_todo.yml'
- '.rubocop.yml'
pull_request:
branches: [ master, devel ]
paths:
- '*.gemspec'
- 'Gemfile'
- 'Gemfile.lock'
- 'bin/tetra'
- 'lib/**.rb'
- 'spec/**.rb'
- '**.rb'
- '.github/workflows/rubocop.yml'
- '.rubocop_todo.yml'
- '.rubocop.yml'
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: ruby/setup-ruby@4fc31e1c823882afd7ef55985266a526c589de90 # v1.282.0
with:
ruby-version: '3.4'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install RuboCop via bundle
run: bundle install
- name: Run RuboCop
run: |
ruby --version
bundle exec rubocop --version
bundle exec rubocop 'bin/tetra'
bundle exec rubocop 'lib/tetra.rb'
bundle exec rubocop 'lib/tetra/'
bundle exec rubocop 'spec/spec_helper.rb'
bundle exec rubocop 'spec/lib'
bundle exec rubocop 'tetra.gemspec'