Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.

Commit 966f272

Browse files
committed
chore: added code coverage and caching
1 parent 5ba87f6 commit 966f272

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/rust.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
10+
CARGO_INCREMENTAL: 0
11+
CARGO_PROFILE_TEST_DEBUG: 0
1012
CARGO_TERM_COLOR: always
1113

1214
jobs:
1315
build:
14-
1516
runs-on: ubuntu-latest
1617

1718
steps:
18-
- uses: actions/checkout@v4
19-
- name: Build
20-
run: cargo build
21-
- name: Run tests
22-
run: cargo test --verbose
19+
- uses: actions/checkout@v5
20+
- uses: dtolnay/rust-toolchain@stable
21+
- uses: Swatinem/rust-cache@v2
22+
- run: cargo test --locked
23+
- run: cargo clippy --locked
24+
- run: |
25+
cargo install cargo-llvm-cov
26+
cargo llvm-cov --locked

0 commit comments

Comments
 (0)