Compare commits

...

1 Commits

2 changed files with 9 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ jobs:
uses: dtolnay/rust-toolchain@master uses: dtolnay/rust-toolchain@master
with: with:
toolchain: ${{ env.RUST_TOOLCHAIN }} toolchain: ${{ env.RUST_TOOLCHAIN }}
components: llvm-tools-preview
- name: Rust Cache - name: Rust Cache
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
@@ -40,20 +41,17 @@ jobs:
cargo install cargo-vcpkg cargo install cargo-vcpkg
cargo vcpkg -v build cargo vcpkg -v build
- name: Install cargo-tarpaulin - uses: taiki-e/install-action@cargo-llvm-cov
run: cargo install cargo-tarpaulin - uses: taiki-e/install-action@nextest
# Note: We manually link zlib. This should be synchronized with the flags set for Linux in .cargo/config.toml. # Note: We manually link zlib. This should be synchronized with the flags set for Linux in .cargo/config.toml.
- name: Generate coverage report - name: Generate coverage report
run: | run: |
cargo tarpaulin \ cargo llvm-cov --no-fail-fast --lcov --output-path lcov.info nextest
--out Lcov \
--output-dir coverage \
--rustflags="-C link-arg=-lz"
- name: Upload coverage to Coveralls - name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2 uses: coverallsapp/github-action@v2
with: with:
files: ./coverage/lcov.info files: ./lcov.info
format: lcov format: lcov
allow-empty: false allow-empty: false

View File

@@ -42,8 +42,10 @@ jobs:
cargo install cargo-vcpkg cargo install cargo-vcpkg
cargo vcpkg -v build cargo vcpkg -v build
- name: Run tests - uses: taiki-e/install-action@nextest
run: cargo test --workspace --verbose
- name: Run nextest
run: cargo nextest run --workspace
- name: Run clippy - name: Run clippy
run: cargo clippy -- -D warnings run: cargo clippy -- -D warnings