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

chore: track code coverage in PRs #5312

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

kilianc
Copy link
Contributor

@kilianc kilianc commented May 20, 2024

It would be nice to track code coverage for this repo

Summary by CodeRabbit

  • Chores
    • Updated permissions for pull requests to enhance workflow automation.
    • Modified test command to include coverage profiling for better test insights.
    • Added installation of Vim for improved editing capabilities in the workflow.
    • Integrated step for generating beautiful HTML coverage reports to visualize test coverage.

sourcery-ai[bot]

This comment was marked as resolved.

This comment was marked as resolved.

Copy link
Collaborator

@phanirithvij phanirithvij left a comment

Choose a reason for hiding this comment

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

I think this is okay, but @avelino needs to approve.

.github/workflows/tests.yaml Show resolved Hide resolved
.github/workflows/tests.yaml Show resolved Hide resolved
@phanirithvij phanirithvij requested a review from avelino May 22, 2024 20:59

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

@avelino
Copy link
Owner

avelino commented May 23, 2024

I think this is okay, but @avelino needs to approve.

general review: I like the idea of putting this action

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 072b370 and f6060a3.
Files selected for processing (1)
  • .github/workflows/tests.yaml (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/tests.yaml

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between f6060a3 and 9d390bc.
Files selected for processing (1)
  • .github/workflows/tests.yaml (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/tests.yaml

run: go get -v -t -d ./...
- name: Run tests
run: go test main_test.go main.go
if: steps.verify-changed-files.outputs.files_changed == 'true'
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to run tests still, only skip the coverage step please.

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 looks like it's not working either way :(

Copy link
Collaborator

Choose a reason for hiding this comment

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

@kilianc can you enable github actions and github pages for your fork for cover branch and try and run it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done: kilianc#1 (comment)

but the action to detect changes is borked, I am going to use git directly or find a new one if that's ok

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure

.github/workflows/tests.yaml Outdated Show resolved Hide resolved
.github/workflows/tests.yaml Outdated Show resolved Hide resolved
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 9d390bc and f68f735.
Files selected for processing (1)
  • .github/workflows/tests.yaml (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/tests.yaml

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

4 participants