Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from CircleCI to GitHub Actions #1084

Merged
merged 3 commits into from
Nov 7, 2021
Merged

Move from CircleCI to GitHub Actions #1084

merged 3 commits into from
Nov 7, 2021

Conversation

bquorning
Copy link
Collaborator

@bquorning bquorning commented Nov 9, 2020

It seems like GHA is slightly faster than CircleCI (https://github.com/rubocop-hq/rubocop-rspec/actions/runs/384097573 vs https://app.circleci.com/pipelines/github/rubocop-hq/rubocop-rspec/772/workflows/590d8153-c0ca-4d87-8c5d-d6ba132e4f40). Being a built-in tool of GitHub, it’s easier to sign in and manage permissions.

We cannot move the Code Climate integration away from CircleCi because I forgot who has the keys to sign in and get a new API key 🤦

.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
@bquorning bquorning force-pushed the github-actions branch 3 times, most recently from 441513d to 8699348 Compare November 25, 2020 22:16
@bquorning bquorning marked this pull request as ready for review November 25, 2020 22:21
@pirj
Copy link
Member

pirj commented Mar 3, 2021

Circle stuck for the second time (that I've noticed) in #1133
So now is high time for the move.

It seemed to me that we have two (different?) CodeClimate checks:
image

In either case, I believe we can survive without CodeClimate. At least having a CI that works (rather than pretends to work is preferable.

@bquorning bquorning force-pushed the github-actions branch 2 times, most recently from d040557 to 7ab3f11 Compare March 3, 2021 08:10
@pirj
Copy link
Member

pirj commented Mar 3, 2021

Fixed the internal investigation in #1134

.github/workflows/main.yml Outdated Show resolved Hide resolved
@bquorning
Copy link
Collaborator Author

@Darhazer What do you think – is it OK to get rid of Code Climate?

@Darhazer
Copy link
Member

Darhazer commented Jun 9, 2021

@bquorning perhaps we can register a new codeclimate under the new organization 😂

But I'm fine with moving away from it as well

@bquorning bquorning force-pushed the github-actions branch 3 times, most recently from 6841515 to aa84997 Compare June 9, 2021 12:18
@pirj
Copy link
Member

pirj commented Jun 9, 2021

I don't think code climate ever has brought any value in the past to rubocop-rspec specifically.

@bquorning
Copy link
Collaborator Author

How do you feel about me removing the simplecov gem and rake coverage too, then?

@pirj
Copy link
Member

pirj commented Jun 9, 2021

removing the simplecov gem and rake coverage too

I suprised me, it seems rake coverage is running as part of our default Rake task, isn't it?

task default: %i[build_config coverage
                 internal_investigation

The current coverage is

All Files (99.69% covered ...

with a few outliers:

lib/rubocop/cop/rspec/align_left_let_brace.rb | 94.12 %

At the same time, SimpleCov.minimum_coverage is not set in our spec_helper.rb, and I can't remember opening coverage/index.html.

Is it causing any problems?

Wondering what it takes to raise our coverage to 100% and set it as a hard constraint.
image

Also wondering why it counts coverage of spec files 😕

@bquorning
Copy link
Collaborator Author

is it OK to get rid of Code Climate?

But I'm fine with moving away from it as well

I don't think code climate ever has brought any value in the past to rubocop-rspec specifically.

Sorry for the delay. I’ll rebase this PR and merge on green.

CodeClimate checks is still run on CircleCI, since I cannot find the API
key needed to configure it on GitHub Actions 😅
I don't know the API key for this integration, and I don't think anyone
really uses it anymore.
I don't think anyone uses the code coverage reports anymore.
@bquorning bquorning deleted the github-actions branch November 7, 2021 21:16
@pirj
Copy link
Member

pirj commented Nov 7, 2021

Fantastic, thanks!

@bquorning
Copy link
Collaborator Author

All open PRs need to be rebased (or merge origin/master) for CI to pass now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants