-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (49 loc) · 1.25 KB
/
check-radicle-httpd.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
name: check-radicle-httpd
on: push
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./radicle-httpd
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: radicle-httpd -> target
- name: Build
run: cargo build --all-features
- name: Run tests
run: cargo test --all-features
docs:
name: Docs
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./radicle-httpd
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: radicle-httpd -> target
- name: Docs
run: cargo doc --all --all-features
lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./radicle-httpd
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: radicle-httpd -> target
- name: Run clippy
run: cargo clippy --all --tests
- name: Check formatting
run: cargo fmt --all --check