Skip to content

chore: Add sonarcloud analysis #589

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

Merged
merged 2 commits into from
Jan 19, 2022

Conversation

BrimmingDev
Copy link
Contributor

Added sonarcloud analysis to the build

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

@BrimmingDev BrimmingDev reopened this Jan 14, 2022
@BrimmingDev BrimmingDev marked this pull request as draft January 14, 2022 22:41
@BrimmingDev BrimmingDev force-pushed the add-sonarcloud-analysis branch 2 times, most recently from db6726a to 6670b08 Compare January 18, 2022 21:05
@BrimmingDev BrimmingDev force-pushed the add-sonarcloud-analysis branch 2 times, most recently from f31365a to 06bb925 Compare January 18, 2022 21:21
@BrimmingDev BrimmingDev marked this pull request as ready for review January 18, 2022 21:26
@BrimmingDev BrimmingDev requested a review from beebzz January 18, 2022 21:26
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.json
- name: SonarCloud Scan
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.ruby == '3.0' && !github.event.pull_request.head.repo.fork }}
Copy link

Choose a reason for hiding this comment

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

This should be running SonarCloud on Ruby 3.0, but it looks like it's being skipped on that version too: https://github.com/twilio/twilio-ruby/runs/4859609125?check_suite_focus=true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It skipped it because the source branch is from my fork otherwise it would blow up because of invalid tokens. You can see a valid run on my fork: https://github.com/BrimmingDev/twilio-ruby/actions/runs/1714902065.

@BrimmingDev BrimmingDev merged commit 6c50e0f into twilio:main Jan 19, 2022
@BrimmingDev BrimmingDev deleted the add-sonarcloud-analysis branch January 19, 2022 19:30
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.

2 participants