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

Update coverage workflow #7430

Merged
merged 2 commits into from
Feb 2, 2021
Merged

Update coverage workflow #7430

merged 2 commits into from
Feb 2, 2021

Conversation

granluo
Copy link
Contributor

@granluo granluo commented Feb 2, 2021

Trigger the code coverage workflow when a PR is created. Fix a bug and remove redundant comments.

@google-cla google-cla bot added the cla: yes label Feb 2, 2021
@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@@ -66,7 +66,7 @@ extension CoverageReportRequestData {
// FirebaseDatabase-ios-FirebaseCore.framework, a regex pattern will be
// used to exclude results that are not related in terms of the target names.
let sdk_name = resultBundle.components(separatedBy: "-")[0]
let range = NSRange(location: 0, length: sdk_name.utf16.count)
let range = NSRange(location: 0, length: target.name.utf16.count)
Copy link
Contributor Author

@granluo granluo Feb 2, 2021

Choose a reason for hiding this comment

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

This bug is detected here. This is caused by the range not aligned with the target.name in line 75.

# synchronize will be triggered when a pull request has new commits.
# closed will be triggered when a pull request is closed.
types: [synchronize, closed]
types: [open, synchronize, closed]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Synchronize will only trigger a workflow when an existing PR is updated.

@granluo granluo requested a review from paulb777 February 2, 2021 20:04
@granluo granluo merged commit 93574c5 into master Feb 2, 2021
@granluo granluo deleted the update_coverage_workflow branch February 2, 2021 20:58
@firebase firebase locked and limited conversation to collaborators Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants