File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 23
23
toolchain : 1.81.0
24
24
components : llvm-tools-preview
25
25
26
- - name : Install cargo-llvm-cov
27
- uses : taiki-e/install-action@cargo-llvm-cov
28
-
29
26
- run : |
30
27
sudo apt remove -y postgres*
31
28
sudo apt-get install -y wget gnupg
@@ -50,11 +47,13 @@ jobs:
50
47
51
48
- run : cargo install cargo-pgrx --version 0.12.6
52
49
- run : cargo pgrx init --pg16 /usr/lib/postgresql/16/bin/pg_config
50
+ - run : cargo install grcov
53
51
54
52
- name : Generate code coverage
55
53
id : coverage
56
54
run : |
57
- cargo llvm-cov test --workspace --no-fail-fast --lcov --output-path lcov.info
55
+ CARGO_INCREMENTAL=0 RUSTFLAGS='-Clink-args=-Wl,-undefined,dynamic_lookup -Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test
56
+ grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o lcov.info
58
57
59
58
- name : Coveralls upload
60
59
uses : coverallsapp/github-action@v2
You can’t perform that action at this time.
0 commit comments