Skip to content

Commit 7df13a0

Browse files
committed
codecov
1 parent c6a8a49 commit 7df13a0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ jobs:
5151
- uses: taiki-e/install-action@nextest
5252
- run: cargo run --bin forest-dev --no-default-features --profile quick -- fetch-rpc-tests
5353
- name: Generate code coverage
54-
run: |
55-
cargo llvm-cov --workspace --profile quick --codecov --output-path lcov.info test
54+
run: make codecov
5655
env:
57-
CC: "sccache clang"
58-
CXX: "sccache clang++"
5956
# To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times
6057
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
6158
# Save lcov.info as an artifact for debugging purposes

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
- name: install nextest
5353
uses: taiki-e/install-action@nextest
5454
- run: make test
55+
env:
56+
# Skip RPC snapshot tests for debug build
57+
FOREST_RPC_SNAPSHOT_TEST_OPT_OUT: 1
5558
tests-release:
5659
runs-on: ubuntu-24.04-arm
5760
# Run the job only if the PR is not a draft.

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ docker-run:
9999
docker build -t forest:latest -f ./Dockerfile . && docker run forest
100100

101101
test:
102-
# Skip RPC snapshot tests for debug build
103-
export FOREST_RPC_SNAPSHOT_TEST_OPT_OUT=1
104102
cargo nextest run --workspace --no-fail-fast
105103

106104
# nextest doesn't run doctests https://github.com/nextest-rs/nextest/issues/16
@@ -112,6 +110,9 @@ test-release:
112110

113111
test-all: test test-release
114112

113+
codecov:
114+
cargo llvm-cov --workspace --profile quick --codecov --output-path lcov.info test
115+
115116
# Checks if all headers are present and adds if not
116117
license:
117118
./scripts/add_license.sh

0 commit comments

Comments
 (0)