mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
PG-433: Codecov code coverage with PGSM GH repo (#279)
1) Updated code coverage workflow with required changes so that we point to Codecov onwards for coverage stats. 2) Updated README.md file so that badge for Code Coverage, points to CodeCov coverage stats for PGSM. 3) Added .DS_STORE to .gitignore file.
This commit is contained in:
25
.github/workflows/code-coverage-test.yml
vendored
25
.github/workflows/code-coverage-test.yml
vendored
@@ -1,12 +1,7 @@
|
||||
name: coverage_test
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
name: code-coverage-test
|
||||
on: ["push", "pull_request"]
|
||||
|
||||
jobs:
|
||||
if_merged:
|
||||
if: github.event.pull_request.merged == true
|
||||
build:
|
||||
name: coverage-test
|
||||
runs-on: ubuntu-latest
|
||||
@@ -96,13 +91,19 @@ jobs:
|
||||
run: |
|
||||
make installcheck
|
||||
/usr/lib/postgresql/14/bin/psql -d postgres -p 5432 -c "\list"
|
||||
make coverage-html
|
||||
lcov --capture --directory . --output-file coverage/lcov.info
|
||||
pip install cpp-coveralls
|
||||
export COVERALLS_REPO_TOKEN="${{ secrets.COVERALL_PG_STAT_MONITOR_TOKEN }}"
|
||||
coveralls --verbose
|
||||
gcov -abcfu pg_stat_monitor.c
|
||||
gcov -abcfu guc.c
|
||||
gcov -abcfu hash_query.c
|
||||
sudo chmod -R ugo+rwx *.gcov*
|
||||
working-directory: src/pg_stat_monitor/
|
||||
|
||||
- name: Upload
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
verbose: true
|
||||
working-directory: ./src/pg_stat_monitor
|
||||
files: ./pg_stat_monitor.c.gcov,./hash_query.c.gcov,./guc.c.gcov
|
||||
|
||||
- name: Change dir permissions on fail
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -52,3 +52,6 @@ dkms.conf
|
||||
|
||||
## IDE
|
||||
.idea
|
||||
|
||||
## DS_Store
|
||||
*.DS_Store
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
 
|
||||
 
|
||||
|
||||
[](https://coveralls.io/github/percona/pg_stat_monitor?branch=main)
|
||||
|
||||
[](https://codecov.io/gh/percona/pg_stat_monitor)
|
||||
# pg_stat_monitor: Query Performance Monitoring Tool for PostgreSQL
|
||||
|
||||
## Table of Contents
|
||||
|
||||
Reference in New Issue
Block a user