-
-
Notifications
You must be signed in to change notification settings - Fork 33
add code coverage workflow #71
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
Conversation
.github/workflows/coverage.yml
Outdated
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: lcov.info | ||
debug: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess git doesn't like it when you don't have a newline at end of file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a newline
.github/workflows/coverage.yml
Outdated
sudo chmod a+rwx `/usr/lib/postgresql/16/bin/pg_config --pkglibdir` `/usr/lib/postgresql/16/bin/pg_config --sharedir`/extension /var/run/postgresql/ | ||
|
||
- run: cargo install cargo-pgrx --version 0.12.6 | ||
- run: cargo pgrx init --pg16 /usr/lib/postgresql/16/bin/pg_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it matter if this code coverage check is only done on pg 16 but that our targets are pg15 and 17 downstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it shouldn't matter because this is just generating code coverage which for all practical purposes will be the same whichever pg version we use here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess git doesn't like it when you don't have a newline at end of file.
Adds a new code coverage workflow to send code coverage to coveralls