Skip to content

Commit 5c28eb8

Browse files
committed
codecov
1 parent c6a8a49 commit 5c28eb8

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ on:
2727
env:
2828
CI: 1
2929
CARGO_INCREMENTAL: 0
30-
CACHE_TIMEOUT_MINUTES: 5
31-
RUSTC_WRAPPER: sccache
32-
CC: sccache clang
33-
CXX: sccache clang++
30+
FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT: 1
3431

3532
jobs:
3633
codecov:
@@ -40,22 +37,15 @@ jobs:
4037
timeout-minutes: 45
4138
steps:
4239
- uses: actions/checkout@v6
43-
- name: Setup sccache
44-
uses: mozilla-actions/sccache-action@v0.0.9
45-
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
46-
continue-on-error: true
4740
- uses: actions/setup-go@v6
4841
with:
4942
go-version-file: "go.work"
5043
- uses: taiki-e/install-action@cargo-llvm-cov
5144
- uses: taiki-e/install-action@nextest
5245
- run: cargo run --bin forest-dev --no-default-features --profile quick -- fetch-rpc-tests
5346
- name: Generate code coverage
54-
run: |
55-
cargo llvm-cov --workspace --profile quick --codecov --output-path lcov.info test
47+
run: make codecov
5648
env:
57-
CC: "sccache clang"
58-
CXX: "sccache clang++"
5949
# To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times
6050
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
6151
# 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 --ignore-run-fail --no-default-features --profile quick --codecov --output-path lcov.info
115+
115116
# Checks if all headers are present and adds if not
116117
license:
117118
./scripts/add_license.sh

0 commit comments

Comments
 (0)