1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 07:43:28 +01:00

ci: coverage via just

This commit is contained in:
Rob Ede 2024-06-20 02:57:44 +01:00
parent 032aeb6fdb
commit 2a092a19a8
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
5 changed files with 46616 additions and 4 deletions

View File

@ -35,7 +35,7 @@ jobs:
with:
toolchain: nightly
- name: Install cargo-hack and cargo-ci-cache-clean
- name: Install cargo-hack, cargo-ci-cache-clean
uses: taiki-e/install-action@v2.38.0
with:
tool: cargo-hack,cargo-ci-cache-clean

View File

@ -97,7 +97,7 @@ jobs:
with:
toolchain: ${{ matrix.version.version }}
- name: Install cargo-hack and cargo-ci-cache-clean
- name: Install cargo-hack, cargo-ci-cache-clean
uses: taiki-e/install-action@v2.38.0
with:
tool: cargo-hack,cargo-ci-cache-clean

View File

@ -35,7 +35,7 @@ jobs:
tool: cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --workspace --all-features --codecov --output-path codecov.json
run: just test-coverage-codecov
- name: Upload to Codecov
uses: codecov/codecov-action@v4.4.1

View File

@ -40,7 +40,21 @@ test:
# Test workspace code and docs.
[group("test")]
test-all: (test) (test-docs)
test-all: test test-docs
# Test workspace and collect coverage info.
[private]
test-coverage:
cargo {{ toolchain }} llvm-cov nextest --no-report --all-features
cargo {{ toolchain }} llvm-cov --doc --no-report --all-features
# Test workspace and generate Codecov report.
test-coverage-codecov: test-coverage
cargo {{ toolchain }} llvm-cov report --doctests --codecov --output-path=codecov.json
# Test workspace and generate LCOV report.
test-coverage-lcov: test-coverage
cargo {{ toolchain }} llvm-cov report --doctests --lcov --output-path=lcov.info
# Test workspace docs.
[group("test")]

46598
lcov.info Normal file

File diff suppressed because it is too large Load Diff