File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 4141 steps :
4242 - uses : actions/checkout@v4
4343 - run : sudo apt-get update && sudo apt-get install -y -qq build-essential pkg-config jq dpkg curl wget zstd cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler libfuse2 bash fish zsh shellcheck
44- - uses : dtolnay/rust-toolchain@stable
44+ - uses : dtolnay/rust-toolchain@nightly
4545 id : toolchain
46+ with :
47+ components : llvm-tools-preview
48+ - name : Install cargo-llvm-cov
49+ uses : taiki-e/install-action@cargo-llvm-cov
4650 - uses : actions/cache@v4
4751 with :
4852 path : |
5155 ~/.cargo/git/db/
5256 target/
5357 key : cargo-test-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
54- - run : cargo build --locked --workspace --tests
55- - run : cargo test --locked --workspace
58+ - name : Generate code coverage
59+ run : cargo llvm-cov --locked --workspace --lcov --output-path lcov.info
60+ - name : Upload coverage to Codecov
61+ uses : codecov/codecov-action@v5
62+ with :
63+ token : ${{ secrets.CODECOV_TOKEN }} # not required for public repos
64+ files : lcov.info
65+ fail_ci_if_error : true
5666
5767 cargo-fmt :
5868 name : Fmt
You can’t perform that action at this time.
0 commit comments