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:
27
.github/workflows/code-coverage-test.yml
vendored
27
.github/workflows/code-coverage-test.yml
vendored
@@ -1,13 +1,8 @@
|
|||||||
name: coverage_test
|
name: code-coverage-test
|
||||||
on:
|
on: ["push", "pull_request"]
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- closed
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
if_merged:
|
build:
|
||||||
if: github.event.pull_request.merged == true
|
|
||||||
build:
|
|
||||||
name: coverage-test
|
name: coverage-test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -96,13 +91,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make installcheck
|
make installcheck
|
||||||
/usr/lib/postgresql/14/bin/psql -d postgres -p 5432 -c "\list"
|
/usr/lib/postgresql/14/bin/psql -d postgres -p 5432 -c "\list"
|
||||||
make coverage-html
|
gcov -abcfu pg_stat_monitor.c
|
||||||
lcov --capture --directory . --output-file coverage/lcov.info
|
gcov -abcfu guc.c
|
||||||
pip install cpp-coveralls
|
gcov -abcfu hash_query.c
|
||||||
export COVERALLS_REPO_TOKEN="${{ secrets.COVERALL_PG_STAT_MONITOR_TOKEN }}"
|
sudo chmod -R ugo+rwx *.gcov*
|
||||||
coveralls --verbose
|
|
||||||
working-directory: src/pg_stat_monitor/
|
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
|
- name: Change dir permissions on fail
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -52,3 +52,6 @@ dkms.conf
|
|||||||
|
|
||||||
## IDE
|
## IDE
|
||||||
.idea
|
.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
|
# pg_stat_monitor: Query Performance Monitoring Tool for PostgreSQL
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|||||||
Reference in New Issue
Block a user