-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 867 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (27 loc) · 867 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
name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup toolchain install 1.95.0 --profile minimal --component rustfmt --component clippy
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Tests
run: cargo test --workspace
- name: Install cargo-audit
run: cargo install cargo-audit --version 0.22.2 --locked
- name: Audit dependencies
run: cargo audit
- name: Install cargo-deny
run: cargo install cargo-deny --version 0.20.2 --locked
- name: Check advisories and licenses
run: cargo deny check advisories licenses bans sources