Skip to content

Commit 1fa730c

Browse files
committed
yamllint cleanup lint.yml test.yml
NFC fix most `yamllint` errors and warnings in `lint.yml` and `test.yml`.
1 parent c01e3a7 commit 1fa730c

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

.github/workflows/lint.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# lint.yml
2+
---
13
name: lint
24

35
on:
@@ -18,16 +20,20 @@ jobs:
1820
- run: cargo fmt --check -- --color=always
1921
- run: cargo fmt --check --manifest-path fuzz/Cargo.toml
2022
- run: cargo clippy --color=always -- -D warnings
21-
- run: cargo clippy --color=always --target x86_64-pc-windows-msvc -- -D warnings
22-
- run: cargo clippy --manifest-path fuzz/Cargo.toml --color=always -- -D warnings
23+
- run: |
24+
cargo clippy --color=always --target x86_64-pc-windows-msvc \
25+
-- -D warnings
26+
- run: |
27+
cargo clippy --manifest-path fuzz/Cargo.toml --color=always \
28+
-- -D warnings
2329
env:
2430
RUSTFLAGS: "-Dwarnings"
2531
2632
cargo-deny:
2733
runs-on: ubuntu-latest
2834
steps:
29-
- uses: actions/checkout@v3
30-
- uses: EmbarkStudios/cargo-deny-action@v1
35+
- uses: actions/checkout@v3
36+
- uses: EmbarkStudios/cargo-deny-action@v1
3137

3238
check-doc:
3339
runs-on: ubuntu-latest
@@ -39,3 +45,4 @@ jobs:
3945
- run: cargo doc --all-features --no-deps
4046
env:
4147
RUSTDOCFLAGS: -Dwarnings
48+
...

.github/workflows/test.yml

+26-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# test.yml
2+
---
13
name: All Tests and Builds
24

35
on:
@@ -45,9 +47,18 @@ jobs:
4547
with:
4648
toolchain: 1.56.1
4749
- 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
5162
5263
rust_versions:
5364
strategy:
@@ -63,7 +74,8 @@ jobs:
6374
- uses: Swatinem/rust-cache@v2
6475
- run: cargo check --benches
6576
- 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
6779
- run: cargo test --lib --all-features --color=always -- --color=always
6880
- run: cargo test --doc --all-features --color=always -- --color=always
6981

@@ -77,7 +89,11 @@ jobs:
7789
- uses: dtolnay/rust-toolchain@stable
7890
- uses: taiki-e/install-action@cargo-hack
7991
- 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
8197
- run: cargo test --lib --no-default-features
8298
- run: cargo test --doc --no-default-features
8399

@@ -136,7 +152,10 @@ jobs:
136152
targets: wasm32-unknown-unknown
137153
- uses: taiki-e/install-action@cargo-hack
138154
- 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
140159
141160
cross-targets:
142161
strategy:
@@ -158,3 +177,4 @@ jobs:
158177
- run: cargo +nightly doc --all-features --no-deps
159178
env:
160179
RUSTDOCFLAGS: "-D warnings --cfg docsrs"
180+
...

0 commit comments

Comments
 (0)