From 552291055063cebc4b81bcc89d1757442a300050 Mon Sep 17 00:00:00 2001 From: ityuany <519495771@qq.com> Date: Sun, 30 Jun 2024 01:34:04 +0800 Subject: [PATCH] debug --- .github/workflows/cross-platform.yml | 40 +++++++--------------------- crates/snm_config/Cargo.toml | 3 +-- 2 files changed, 11 insertions(+), 32 deletions(-) diff --git a/.github/workflows/cross-platform.yml b/.github/workflows/cross-platform.yml index c7bd1527..31386162 100644 --- a/.github/workflows/cross-platform.yml +++ b/.github/workflows/cross-platform.yml @@ -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 diff --git a/crates/snm_config/Cargo.toml b/crates/snm_config/Cargo.toml index 33c91e94..49a38c0f 100644 --- a/crates/snm_config/Cargo.toml +++ b/crates/snm_config/Cargo.toml @@ -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" \ No newline at end of file +snm_node_version = { path = "../snm_node_version" } \ No newline at end of file