-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 923 Bytes
/
actions.yml
File metadata and controls
45 lines (36 loc) · 923 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
39
40
41
42
43
44
45
name: Run tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "0 0 15 * 1/1"
jobs:
test:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
RUSTUP_MAX_RETRIES: 10
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
target: x86_64-unknown-linux-gnu
toolchain: stable
- name: fmt
run: cargo fmt --all --check
- name: clippy
run: cargo clippy --all --all-targets
- name: test
run: cargo test --all --all-targets --no-fail-fast
- name: doc
run: cargo doc --all