1
+ # test.yml
2
+ ---
1
3
name : All Tests and Builds
2
4
3
5
on :
45
47
with :
46
48
toolchain : 1.56.1
47
49
- uses : Swatinem/rust-cache@v2
48
- # run --lib and --doc to avoid the long running integration tests which are run elsewhere
49
- - run : cargo test --lib --features unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde --color=always -- --color=always
50
- - run : cargo test --doc --features unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde --color=always -- --color=always
50
+ # run --lib and --doc to avoid the long running integration tests
51
+ # which are run elsewhere
52
+ - run : |
53
+ cargo test --lib \
54
+ --features \
55
+ unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde \
56
+ --color=always -- --color=always
57
+ - run : |
58
+ cargo test --doc \
59
+ --features \
60
+ unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde \
61
+ --color=always -- --color=always
51
62
52
63
rust_versions :
53
64
strategy :
63
74
- uses : Swatinem/rust-cache@v2
64
75
- run : cargo check --benches
65
76
- run : cargo check --manifest-path fuzz/Cargo.toml --all-targets
66
- # run --lib and --doc to avoid the long running integration tests which are run elsewhere
77
+ # run --lib and --doc to avoid the long running integration tests
78
+ # which are run elsewhere
67
79
- run : cargo test --lib --all-features --color=always -- --color=always
68
80
- run : cargo test --doc --all-features --color=always -- --color=always
69
81
77
89
- uses : dtolnay/rust-toolchain@stable
78
90
- uses : taiki-e/install-action@cargo-hack
79
91
- uses : Swatinem/rust-cache@v2
80
- - run : cargo hack check --feature-powerset --optional-deps serde,rkyv --skip default --skip __internal_bench --skip __doctest --skip iana-time-zone --skip pure-rust-locales
92
+ - run : |
93
+ cargo hack check --feature-powerset --optional-deps serde,rkyv \
94
+ --skip default --skip __internal_bench --skip __doctest \
95
+ --skip iana-time-zone --skip pure-rust-locales
96
+ shell: bash
81
97
- run : cargo test --lib --no-default-features
82
98
- run : cargo test --doc --no-default-features
83
99
@@ -136,7 +152,10 @@ jobs:
136
152
targets : wasm32-unknown-unknown
137
153
- uses : taiki-e/install-action@cargo-hack
138
154
- uses : Swatinem/rust-cache@v2
139
- - run : cargo hack check --feature-powerset --optional-deps serde,rkyv --skip default --skip __internal_bench --skip __doctest --skip iana-time-zone --skip pure-rust-locales
155
+ - run : |
156
+ cargo hack check --feature-powerset --optional-deps serde,rkyv \
157
+ --skip default --skip __internal_bench --skip __doctest \
158
+ --skip iana-time-zone --skip pure-rust-locales
140
159
141
160
cross-targets :
142
161
strategy :
@@ -158,3 +177,4 @@ jobs:
158
177
- run : cargo +nightly doc --all-features --no-deps
159
178
env :
160
179
RUSTDOCFLAGS : " -D warnings --cfg docsrs"
180
+ ...
0 commit comments