-
Notifications
You must be signed in to change notification settings - Fork 15
64 lines (58 loc) · 1.96 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Rust
on:
pull_request:
push:
jobs:
stable:
name: Test + Clippy (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
set -e
rustup toolchain install stable --no-self-update
rustup default stable
rustup component add clippy
RUSTFLAGS=-Dwarnings cargo test
cargo clippy -- -Dwarnings
RUSTFLAGS=-Dwarnings cargo build --manifest-path fuzz/Cargo.toml --all
nightly:
name: Test + Clippy (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
set -e
rustup toolchain install nightly --no-self-update
rustup default nightly
rustup component add clippy
RUSTFLAGS=-Dwarnings cargo test
cargo clippy -- -Dwarnings
RUSTFLAGS=-Dwarnings cargo build --manifest-path fuzz/Cargo.toml --all
stable-no-default-features:
name: Test + Clippy (stable, no default features)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
set -e
rustup toolchain install stable --no-self-update
rustup default stable
rustup component add clippy
RUSTFLAGS=-Dwarnings cargo test --no-default-features && cargo clippy --no-default-features -- -Dwarnings
msrv:
name: Test (MSRV)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
set -e
rustup toolchain install 1.46 --no-self-update
rustup default 1.46
# We expect an unknown_lints warning on 1.46.
# Any new warnings added should be flagged because they might indicate
# a bug, but feel free to add them to -A below if they are harmless and
# don't happen on newer Rust versions.
# Also, no Clippy because we probably don't care what old Clippy
# thinks.
RUSTFLAGS='-Dwarnings -Aunknown_lints' cargo test