|
1 |
| -# name: Code coverage |
2 |
| -# on: |
3 |
| -# pull_request: |
4 |
| -# push: |
5 |
| -# branches: |
6 |
| -# - TDE_REL_17_STABLE |
7 |
| - |
8 |
| -# jobs: |
9 |
| -# collect: |
10 |
| -# name: Collect and upload |
11 |
| -# runs-on: ubuntu-22.04 |
12 |
| -# steps: |
13 |
| -# - name: Clone repository |
14 |
| -# uses: actions/checkout@v4 |
15 |
| -# with: |
16 |
| -# submodules: recursive |
17 |
| - |
18 |
| -# - name: Install dependencies |
19 |
| -# run: ci_scripts/ubuntu-deps.sh |
20 |
| - |
21 |
| -# - name: Build postgres |
22 |
| -# run: ci_scripts/make-build.sh debug --enable-coverage |
23 |
| - |
24 |
| -# - name: Setup kmip and vault |
25 |
| -# run: ci_scripts/setup-keyring-servers.sh |
26 |
| - |
27 |
| -# - name: Test postgres with TDE to generate coverage |
28 |
| -# run: ci_scripts/make-test.sh --tde-only |
29 |
| - |
30 |
| -# - name: Collect coverage data |
31 |
| -# run: find . -type f -name "*.c" ! -path '*libkmip*' | xargs -t gcov -abcfu |
32 |
| -# working-directory: contrib/pg_tde |
33 |
| - |
34 |
| -# - name: Upload coverage data to codecov.io |
35 |
| -# uses: codecov/codecov-action@v5 |
36 |
| -# with: |
37 |
| -# verbose: true |
38 |
| -# token: ${{ secrets.CODECOV_TOKEN }} |
39 |
| -# working-directory: contrib/pg_tde |
40 |
| -# files: "*.c.gcov" |
41 |
| - |
42 |
| -# - name: Report on test fail |
43 |
| -# uses: actions/upload-artifact@v4 |
44 |
| -# if: ${{ failure() }} |
45 |
| -# with: |
46 |
| -# name: coverage-testlog-tde |
47 |
| -# path: | |
48 |
| -# build/testrun/ |
49 |
| -# contrib/pg_tde/t/ |
50 |
| -# contrib/pg_tde/results |
51 |
| -# contrib/pg_tde/regression.diffs |
52 |
| -# contrib/pg_tde/regression.out |
53 |
| -# contrib/pg_tde/*.gcov |
54 |
| -# retention-days: 3 |
| 1 | +name: Code coverage |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - TDE_REL_17_STABLE |
| 7 | + |
| 8 | +jobs: |
| 9 | + collect: |
| 10 | + name: Collect and upload |
| 11 | + runs-on: ubuntu-22.04 |
| 12 | + steps: |
| 13 | + - name: Clone repository |
| 14 | + uses: actions/checkout@v4 |
| 15 | + with: |
| 16 | + submodules: recursive |
| 17 | + |
| 18 | + - name: Install dependencies |
| 19 | + run: ci_scripts/ubuntu-deps.sh |
| 20 | + |
| 21 | + - name: Build postgres |
| 22 | + run: ci_scripts/make-build.sh debug --enable-coverage |
| 23 | + |
| 24 | + - name: Setup kmip and vault |
| 25 | + run: ci_scripts/setup-keyring-servers.sh |
| 26 | + |
| 27 | + - name: Test postgres with TDE to generate coverage |
| 28 | + run: ci_scripts/make-test.sh --tde-only |
| 29 | + |
| 30 | + - name: Collect coverage data |
| 31 | + run: find . -type f -name "*.c" ! -path '*libkmip*' | xargs -t gcov -abcfu |
| 32 | + working-directory: contrib/pg_tde |
| 33 | + |
| 34 | + - name: Upload coverage data to codecov.io |
| 35 | + uses: codecov/codecov-action@v5 |
| 36 | + with: |
| 37 | + verbose: true |
| 38 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 39 | + working-directory: contrib/pg_tde |
| 40 | + files: "*.c.gcov" |
| 41 | + |
| 42 | + - name: Report on test fail |
| 43 | + uses: actions/upload-artifact@v4 |
| 44 | + if: ${{ failure() }} |
| 45 | + with: |
| 46 | + name: coverage-testlog-tde |
| 47 | + path: | |
| 48 | + build/testrun/ |
| 49 | + contrib/pg_tde/t/ |
| 50 | + contrib/pg_tde/results |
| 51 | + contrib/pg_tde/regression.diffs |
| 52 | + contrib/pg_tde/regression.out |
| 53 | + contrib/pg_tde/*.gcov |
| 54 | + retention-days: 3 |
55 | 55 |
|
56 | 56 |
|
0 commit comments