-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 852 Bytes
/
test.yml
File metadata and controls
36 lines (34 loc) · 852 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
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Test
jobs:
test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
name: Checkout 🛎️
with:
persist-credentials: false
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
name: Setup Cargo Toolchain 🛎️
with:
components: rustfmt, clippy
- run: cargo fmt -- --check
name: Check Code Format 🔧
- run: cargo check --workspace
name: Compile all targets 🚀
- run: cargo test --workspace
name: Running Tests 🚀