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

Run pronto on GitHub Actions without any reporting #403

Merged
merged 2 commits into from Mar 16, 2021

Conversation

dsander
Copy link
Contributor

@dsander dsander commented Mar 5, 2021

In #401 we discussed that there
currently is no 100% safe way to run pronto on pull_request_target
actions we can not send any reports to the GitHub pull request.

This simple action will show up as a failed check. The offences then
need to be viewed in the action output.

@dsander
Copy link
Contributor Author

dsander commented Mar 5, 2021

The test commit that included a rubocop offense failed the action as expected: https://github.com/prontolabs/pronto/runs/2041862031?check_suite_focus=true#step:4:228

@dsander dsander marked this pull request as ready for review March 5, 2021 18:01
@dsander dsander requested a review from a team as a code owner March 5, 2021 18:01
In prontolabs#401 we discussed that there
currently is no 100% safe way to run pronto on `pull_request_target`
actions we can not send any reports to the GitHub pull request.

This simple action will show up as a failed check. The offences then
need to be viewed in the action output.
@dsander
Copy link
Contributor Author

dsander commented Mar 5, 2021

I removed 2.4 from the test matrix because of this failure https://github.com/prontolabs/pronto/runs/2041832382?check_suite_focus=true#step:3:33

@ashkulz
Copy link
Member

ashkulz commented Mar 8, 2021

Makes sense about the GitHub CI check for now! For the Ruby 2.4 failure, can't we override the gem version for 2.4 like it's done here? We'll have to add support for Gemfile.local in Gemfile but I think that's fine.

@dsander
Copy link
Contributor Author

dsander commented Mar 13, 2021

We can, I simply wasn't aware of that trick 😄

Copy link
Member

@ashkulz ashkulz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @dsander!

@ashkulz ashkulz merged commit 999d0b9 into prontolabs:master Mar 16, 2021
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