-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.54 KB
/
presubmit.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
name: presubmit
on: [pull_request, workflow_call, workflow_dispatch]
jobs:
test:
name: cargo test --all-features
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: moonrepo/setup-rust@d8048d4fdff0633123678b093726e6d7c8ad6de5
with:
inherit-toolchain: true
- run: cargo test --all-features
rustfmt:
name: cargo +nightly fmt -- --check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: moonrepo/setup-rust@d8048d4fdff0633123678b093726e6d7c8ad6de5
with:
components: rustfmt
channel: nightly
- run: cargo +nightly fmt -- --check
cranky:
name: cargo +nightly cranky --all-targets -- -D warnings
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: moonrepo/setup-rust@d8048d4fdff0633123678b093726e6d7c8ad6de5
with:
components: clippy
bins: [email protected]
channel: nightly
- run: cargo +nightly cranky --all-targets -- -D warnings
deny:
name: cargo deny --all-features check licenses
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Install Rust toolchain
uses: moonrepo/setup-rust@d8048d4fdff0633123678b093726e6d7c8ad6de5
with:
inherit-toolchain: true
bins: cargo-deny
- run: cargo deny --all-features check licenses