-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 985 Bytes
/
build.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
name: shell-quote CI
on:
push:
schedule:
- cron: "0 0 * * 0" # weekly
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
# Test in release mode too, to defend against, for example, use of
# `debug_assert!` with side effects, i.e. those side effects won't happen
# when compiled with `--release`.
- run: cargo test --release
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy # i.e. `cargo check` plus extra linting.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all-targets -- -D warnings