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 main tests to GitHub actions #12944

Merged
merged 1 commit into from
May 29, 2024

Conversation

Earlopain
Copy link
Contributor

A job collects coverage, uploads the report as an artifact, and once all matrix entries are done a separate job will download these and use paambaati/codeclimate-action to pass it along to CodeClimate. This action takes care of formatting and summing the reports.

In addition to that, I'm also fixing the spec filters which I forgot about in the other PRs


I tested the coverage upload in my fork and it works. https://codeclimate.com/repos/665735d5079a261d16c9bdef/settings/test_reporter#recent-reports, though I don't think this link is publicly accesible:
https://github.com/Earlopain/rubocop/actions/runs/9289677410/job/25564588844

This should appear for you at https://codeclimate.com/github/rubocop-hq/rubocop, click on test coverage and scroll down to recent reports.


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

@Earlopain
Copy link
Contributor Author

Earlopain commented May 29, 2024

The CircleCI integration will need to be removed somewhere. Not sure how that would impact existing PRs, or if that is just something that will happen once here.
image

And the coverage upload might work after merge to master? Not sure how that works exactly, it's the correct id and works for my fork as well (with the correct id ofc). Mabye some setting to tweak?

A job collects coverage, uploads the report as an artifact, and once all
matrix entries are done a separate job will download these and use
`paambaati/codeclimate-action` to pass it along to CodeClimate.
This action takes care of formatting and summing the reports.

In addition to that, I'm also fixing the spec filters which I forgot about in the other PRs
@Earlopain Earlopain force-pushed the move-linux-spec-to-github-actions branch from eb930ff to 82eda43 Compare May 29, 2024 17:00
@bbatsov
Copy link
Collaborator

bbatsov commented May 29, 2024

The CircleCI integration will need to be removed somewhere. Not sure how that would impact existing PRs, or if that is just something that will happen once here.

They'll need to be rebased.

I'll kill the CircleCI setup myself in a bit.

@bbatsov bbatsov merged commit 6463bf2 into rubocop:master May 29, 2024
46 of 48 checks passed
@Earlopain Earlopain deleted the move-linux-spec-to-github-actions branch May 30, 2024 10:27
@Earlopain Earlopain mentioned this pull request May 30, 2024
Closed
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.

None yet

2 participants