Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7706f4

Browse filesBrowse files
committed
build: update code coverage generation
1 parent 86492f7 commit f7706f4
Copy full SHA for f7706f4

File tree

Expand file treeCollapse file tree

1 file changed

+3
-22
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-22
lines changed

‎.github/workflows/ci.yml

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+3-22Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ jobs:
4646
- name: Install Rust
4747
uses: dtolnay/rust-toolchain@master
4848
with:
49-
components: 'llvm-tools-preview'
5049
toolchain: stable
5150

52-
- name: Install grcov
51+
- name: Install cargo-llvm-cov
5352
uses: taiki-e/install-action@main
5453
with:
55-
tool: grcov
54+
tool: cargo-llvm-cov
5655

5756
- name: Tests
5857
if: ${{ !startsWith(matrix.os, 'ubuntu-') }}
@@ -69,28 +68,10 @@ jobs:
6968
env:
7069
CARGO_TERM_COLOR: always
7170
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
72-
LLVM_PROFILE_FILE: postgresql-%p-%m.profraw
7371
RUST_LOG: "info,postgresql_archive=debug,postgresql_commands=debug,postgresql_embedded=debug"
7472
RUST_LOG_SPAN_EVENTS: full
75-
RUSTFLAGS: -Cinstrument-coverage
76-
RUSTDOCFLAGS: -Cinstrument-coverage
7773
run: |
78-
cargo test --workspace --all-features
79-
80-
- name: Produce coverage info
81-
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
82-
run: |
83-
grcov $(find . -name "postgresql-*.profraw" -print) \
84-
-s . \
85-
--branch \
86-
--ignore-not-existing \
87-
--ignore='target/*' \
88-
--ignore='benches/*' \
89-
--ignore='/*' \
90-
--binary-path ./target/debug/ \
91-
--excl-line='#\[derive' \
92-
-t lcov \
93-
-o lcov.info
74+
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
9475
9576
- name: Upload to codecov.io
9677
if: ${{ startsWith(matrix.os, 'ubuntu-') }}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.