Skip to content

Commit

Permalink
Merge pull request #1084 from rubocop/github-actions
Browse files Browse the repository at this point in the history
Move from CircleCI to GitHub Actions
  • Loading branch information
bquorning authored Nov 7, 2021
2 parents 8821470 + 52baf6e commit 96aa010
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 130 deletions.
107 changes: 0 additions & 107 deletions .circleci/config.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on: push

jobs:
confirm_config_and_documentation:
runs-on: ubuntu-latest
name: Confirm config and documentation
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rake confirm_config documentation_syntax_check confirm_documentation

main:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- 2.5
- 2.6
- 2.7
- "3.0"
- jruby
task:
- internal_investigation
- spec
rubocop_version:
- gem
include:
- rubocop_version: edge
ruby: 2.7
task: internal_investigation
- rubocop_version: edge
ruby: 2.7
task: spec
name: ${{ matrix.task }}, Ruby ${{ matrix.ruby }} (${{ matrix.rubocop_version }})
steps:
- uses: actions/checkout@v2
- name: Use latest RuboCop from `master`
run: |
echo "gem 'rubocop', github: 'rubocop-hq/rubocop'" > Gemfile.local
if: matrix.rubocop_version == 'edge'
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- run: bundle exec rake ${{ matrix.task }}
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# rcov generated
coverage
coverage.data

# rdoc generated
rdoc

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

[![Join the chat at https://gitter.im/rubocop-rspec/Lobby](https://badges.gitter.im/rubocop-rspec/Lobby.svg)](https://gitter.im/rubocop-rspec/Lobby)
[![Gem Version](https://badge.fury.io/rb/rubocop-rspec.svg)](https://rubygems.org/gems/rubocop-rspec)
[![CircleCI](https://circleci.com/gh/rubocop/rubocop-rspec.svg?style=svg)](https://circleci.com/gh/rubocop/rubocop-rspec)
[![Test Coverage](https://api.codeclimate.com/v1/badges/8ffaabf633c968c22bdd/test_coverage)](https://codeclimate.com/github/rubocop-hq/rubocop-rspec/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/8ffaabf633c968c22bdd/maintainability)](https://codeclimate.com/github/rubocop-hq/rubocop-rspec/maintainability)
![CI](https://github.com/rubocop-hq/rubocop-rspec/workflows/CI/badge.svg)

RSpec-specific analysis for your projects, as an extension to
[RuboCop](https://github.com/rubocop/rubocop).
Expand Down
8 changes: 1 addition & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end

desc 'Run RSpec with code coverage'
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['spec'].execute
end

desc 'Run RuboCop over this gem'
task :internal_investigation do
sh('bundle exec rubocop --require rubocop-rspec')
Expand Down Expand Up @@ -61,7 +55,7 @@ task confirm_documentation: :generate_cops_documentation do
end
end

task default: %i[build_config coverage
task default: %i[build_config spec
internal_investigation
confirm_config
documentation_syntax_check
Expand Down
4 changes: 0 additions & 4 deletions rubocop-rspec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '>= 3.4'
spec.add_development_dependency 'rubocop-performance', '~> 1.7'
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
# Workaround for cc-test-reporter with SimpleCov 0.18.
# Stop upgrading SimpleCov until the following issue will be resolved.
# https://github.com/codeclimate/test-reporter/issues/418
spec.add_development_dependency 'simplecov', '< 0.18'
spec.add_development_dependency 'yard'
end
5 changes: 0 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
require 'rubocop'
require 'rubocop/rspec/support'

if ENV['COVERAGE'] == 'true'
require 'simplecov'
SimpleCov.start
end

module SpecHelper
ROOT = Pathname.new(__dir__).parent.freeze
end
Expand Down

0 comments on commit 96aa010

Please sign in to comment.