Debian Codegraph @

debian/rust-vendor/shlex/.github/workflows/test.yml

raw
1 name: Rust
2
3 on:
4 pull_request:
5 push:
6
7 jobs:
8 stable:
9 name: Test + Clippy (stable)
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v2
13 - run: rustup toolchain install stable --no-self-update
14 - run: rustup default stable
15 - run: rustup component add clippy
16 - run: RUSTFLAGS=-Dwarnings cargo test
17 - run: cargo clippy -- -Dwarnings
18 - run: cargo doc
19 - run: RUSTFLAGS=-Dwarnings cargo build --manifest-path fuzz/Cargo.toml --all
20
21 beta:
22 name: Test + Clippy (beta)
23 runs-on: ubuntu-latest
24 steps:
25 - uses: actions/checkout@v2
26 - run: rustup toolchain install beta --no-self-update
27 - run: rustup default beta
28 - run: rustup component add clippy
29 - run: RUSTFLAGS=-Dwarnings cargo test
30 - run: cargo clippy -- -Dwarnings
31 - run: RUSTFLAGS=-Dwarnings cargo build --manifest-path fuzz/Cargo.toml --all
32
33 stable-no-default-features:
34 name: Test + Clippy (stable, no default features)
35 runs-on: ubuntu-latest
36 steps:
37 - uses: actions/checkout@v2
38 - run: rustup toolchain install stable --no-self-update
39 - run: rustup default stable
40 - run: rustup component add clippy
41 - run: RUSTFLAGS=-Dwarnings cargo test --no-default-features && cargo clippy --no-default-features -- -Dwarnings
42
43 msrv:
44 name: Test (MSRV)
45 runs-on: ubuntu-latest
46 steps:
47 - uses: actions/checkout@v2
48 - run: rustup toolchain install 1.46 --no-self-update
49 - run: rustup default 1.46
50 # We expect an unknown_lints warning on 1.46.
51 # Any new warnings added should be flagged because they might indicate
52 # a bug, but feel free to add them to -A below if they are harmless and
53 # don't happen on newer Rust versions.
54 # Also, no Clippy because we probably don't care what old Clippy
55 # thinks.
56 - run: RUSTFLAGS='-Dwarnings -Aunknown_lints' cargo test
57