-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 857 Bytes
/
Copy pathci.yml
File metadata and controls
38 lines (28 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: ci
on:
push:
branches: ["main", "master"]
pull_request:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Restore cargo cache
uses: Swatinem/rust-cache@v2
- name: Install cargo-nextest
uses: taiki-e/install-action@cargo-nextest
- name: cargo fmt
run: cargo fmt --all --check
- name: cargo clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: cargo nextest
run: cargo nextest run --workspace --all-features
- name: cargo doc tests
run: cargo test --doc --workspace
- name: cargo build
run: cargo build --release --locked