-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (71 loc) · 1.98 KB
/
Copy pathci.yml
File metadata and controls
90 lines (71 loc) · 1.98 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: CI
on:
pull_request:
permissions:
id-token: write
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
compile_and_test:
name: Compile & Test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
toolchain:
- stable
steps:
- name: Check out Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Rust Toolchain for GitHub CI
uses: actions-rust-lang/setup-rust-toolchain@v1.13.0
with:
toolchain: stable
- name: Rust Cache
uses: Swatinem/rust-cache@v2.8.0
- name: Install latest nextest release
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest@0.9.99
- name: Test
run: cargo nextest run --workspace --lib --all-targets --all-features
- name: Test Docstrings
run: cargo test --doc --workspace --all-features
format:
name: Code Format
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Rust Toolchain for GitHub CI
uses: actions-rust-lang/setup-rust-toolchain@v1.13.0
with:
toolchain: stable
components: rustfmt
- name: Rust Cache
uses: Swatinem/rust-cache@v2.8.0
- name: Check formatting of Rust code with rustfmt
uses: actions-rust-lang/rustfmt@v1.1.1
lint:
name: Code Lint
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Rust Toolchain for GitHub CI
uses: actions-rust-lang/setup-rust-toolchain@v1.13.0
with:
toolchain: stable
components: clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2.8.0
- run: cargo clippy --workspace --lib --all-targets --all-features -- -D clippy::dbg-macro