Skip to content

Commit c9a9a5d

Browse files
committed
try check-with-coverage
1 parent 84425d6 commit c9a9a5d

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,20 @@ jobs:
138138
make check-format
139139
make check-lint
140140
141-
# - name: Run tests with coverage
142-
# if: ${{ env.PG_MAJOR }} == 17 || ${{ matrix.arch == 'x64' }}
143-
# run: |
144-
# make check-with-coverage
145-
146141
- name: Run tests without coverage
147-
if: ${{ env.PG_MAJOR }} != 17 || ${{ matrix.arch != 'x64' }}
142+
if: ${{ env.PG_MAJOR != '17' || matrix.arch != 'x64' }}
148143
run: |
149144
make check
150145
151-
# - name: Upload coverage report to Codecov
152-
# if: ${{ env.PG_MAJOR }} == 17 && ${{ matrix.arch == 'x64' }}
153-
# uses: codecov/codecov-action@v4
154-
# with:
155-
# fail_ci_if_error: true
156-
# files: ./lcov.info
157-
# token: ${{ secrets.CODECOV_TOKEN }}
146+
- name: Run tests with coverage
147+
if: ${{ env.PG_MAJOR == '17' && matrix.arch == 'x64' }}
148+
run: |
149+
make check-with-coverage
150+
151+
- name: Upload coverage report to Codecov
152+
if: ${{ env.PG_MAJOR == '17' && matrix.arch == 'x64' }}
153+
uses: codecov/codecov-action@v4
154+
with:
155+
fail_ci_if_error: true
156+
files: ./lcov.info
157+
token: ${{ secrets.CODECOV_TOKEN }}

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ check: build stop-containers start-containers
4747
cargo pgrx test pg$(PG_MAJOR) --no-default-features
4848

4949
check-with-coverage: init-pgrx stop-containers start-containers
50-
cargo llvm-cov show-env --export-prefix > llvm-cov.env
51-
. ./llvm-cov.env
52-
cargo llvm-cov clean
53-
cargo build --features "pg$(PG_MAJOR), pg_test" --no-default-features
54-
cargo pgrx test pg$(PG_MAJOR) --no-default-features
50+
cargo llvm-cov show-env --export-prefix > llvm-cov.env && \
51+
. ./llvm-cov.env && \
52+
cargo llvm-cov clean && \
53+
cargo build --features "pg$(PG_MAJOR), pg_test" --no-default-features && \
54+
cargo pgrx test pg$(PG_MAJOR) --no-default-features && \
5555
cargo llvm-cov report --lcov > lcov.info
5656

5757
check-s3: build stop-minio start-minio

0 commit comments

Comments
 (0)