diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a0dee5741..36f440f01 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -341,18 +341,20 @@ jobs: persist-credentials: false - name: Install toolchain - uses: dtolnay/rust-toolchain@nightly + uses: dtolnay/rust-toolchain@stable - name: Install cargo-llvm-cov run: | curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz \ | tar xzf - -C ~/.cargo/bin + - name: Cache cargo output + uses: Swatinem/rust-cache@v2 + - name: Generate coverage report run: | cargo llvm-cov clean --workspace cargo llvm-cov test --no-report --all-features -- --test-threads=1 - cargo llvm-cov test --no-report --tests --all-features -- compile_fail cargo llvm-cov report --lcov > lcov.txt env: RUSTFLAGS: --cfg __ui_tests diff --git a/Cargo.toml b/Cargo.toml index 072e66128..060878d17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,7 @@ serde_test = "1.0.126" quickcheck_macros = "1.0.0" [target.'cfg(__ui_tests)'.dev-dependencies] -trybuild = "1.0.63" +trybuild = "1.0.68" [target.'cfg(bench)'.dev-dependencies] criterion = { version = "0.4.0", default-features = false }