Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Jun 29, 2024
1 parent 57bec98 commit 5522910
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 32 deletions.
40 changes: 10 additions & 30 deletions .github/workflows/cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,39 +66,19 @@ jobs:
coverage:
name: Collect test coverage
runs-on: ubuntu-latest
continue-on-error: false
env:
# RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
# Nightly Rust is used for cargo llvm-cov --doc below.
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2

- name: Install latest nextest release
uses: taiki-e/install-action@6608b29f1fd1773aafb923cffd26c3a528f72083 # v2
with:
tool: nextest
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@6608b29f1fd1773aafb923cffd26c3a528f72083 # v2
with:
tool: cargo-llvm-cov

- name: Collect coverage data
# Generate separate reports for nextest and doctests, and combine them.
# cargo +nightly llvm-cov --no-report nextest --test-threads=1
# cargo +nightly llvm-cov --no-report --doc
# cargo +nightly llvm-cov report --doctests --lcov --output-path lcov.info
run: |
cargo +nightly llvm-cov --no-report nextest --test-threads=1
cargo +nightly llvm-cov --no-report --doc
cargo +nightly llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload coverage data to codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: true
3 changes: 1 addition & 2 deletions crates/snm_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ dirs = "5.0.1"
snm_npmrc = { path = "../snm_npmrc" }
snm_utils = { path = "../snm_utils" }
snm_package_json ={ path = "../snm_package_json"}
snm_node_version = { path = "../snm_node_version" }
ordered-multimap = "0.7.3"
snm_node_version = { path = "../snm_node_version" }

0 comments on commit 5522910

Please sign in to comment.