-
Notifications
You must be signed in to change notification settings - Fork 18
55 lines (48 loc) · 1.06 KB
/
ci.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '30 3 * * 4'
name: CI
env:
RUST_VERSION: "1.77.2"
jobs:
test:
name: run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: $RUST_VERSION
- run: cargo build
- run: cargo test --all-features
clippy:
name: run clippy lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: $RUST_VERSION
components: clippy
- run: cargo clippy --all-features -- -D warnings
fmt:
name: run rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- run: cargo fmt --all --check
audit:
name: run cargo audit
runs-on: ubuntu-latest
container: dbrgn/cargo-audit:latest
steps:
- uses: actions/checkout@v4
- run: cargo audit