-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (37 loc) · 991 Bytes
/
lint.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: Lint
on:
pull_request:
jobs:
lint_proxy_server:
runs-on: ubuntu-20.04-16c-64g
defaults:
run:
working-directory: ./proxy_server
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Sanity Check
run: |
cat /proc/cpuinfo
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
caller-workflow-name: test
- name: Setup Rust tools
run: |
cargo install cargo-sort
cargo install cargo-udeps
shell: bash
- name: cargo sort
run: cargo sort --workspace --check
shell: bash
- name: cargo fmt
run: cargo fmt --all --check
shell: bash
- name: Clippy check
run: cargo clippy --all-features --all-targets --tests -- -D warnings
- name: cargo udeps
run: cargo udeps --all-features --all-targets --tests
shell: bash