-
Notifications
You must be signed in to change notification settings - Fork 72
35 lines (29 loc) · 891 Bytes
/
format.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
name: Check
on: [push, pull_request]
jobs:
src:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
components: rustfmt, clippy
- uses: actions/checkout@master
- name: Format src
run: cargo fmt --all -- --check
- name: Clippy src (no default features, hashbrown)
run: cargo clippy --no-default-features --features hashbrown -- -D warnings
- name: Clippy src (all features)
run: cargo clippy --all-features -- -D warnings
dev:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
components: rustfmt, clippy
- uses: actions/checkout@master
- name: Format dev
run: cargo fmt --all -- --check
working-directory: ./dev
- name: Clippy dev (all features)
run: cargo clippy --all-features -- -D warnings
working-directory: ./dev