-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.1 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "17 3 * * 1"
jobs:
test:
strategy:
matrix:
toolchain: ["1.64.0", stable, beta, nightly]
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --all-features
msrv:
name: cargo test (1.30.0)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.30.0
- run: cargo test
clippy-fmt-doc:
name: cargo fmt / cargo clippy / cargo doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy
- name: Running cargo fmt, cargo clippy and cargo doc
run: |
cargo fmt -- --check
cargo clippy --all-features -- -D warnings
cargo doc --all-features