mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
yamllint cleanup lint.yml test.yml
NFC fix most `yamllint` errors and warnings in `lint.yml` and `test.yml`.
This commit is contained in:
parent
3c3836d8ba
commit
f616167f8b
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@ -18,8 +18,12 @@ jobs:
|
|||||||
- run: cargo fmt --check -- --color=always
|
- run: cargo fmt --check -- --color=always
|
||||||
- run: cargo fmt --check --manifest-path fuzz/Cargo.toml
|
- run: cargo fmt --check --manifest-path fuzz/Cargo.toml
|
||||||
- run: cargo clippy --color=always -- -D warnings
|
- run: cargo clippy --color=always -- -D warnings
|
||||||
- run: cargo clippy --color=always --target x86_64-pc-windows-msvc -- -D warnings
|
- run: |
|
||||||
- run: cargo clippy --manifest-path fuzz/Cargo.toml --color=always -- -D warnings
|
cargo clippy --color=always --target x86_64-pc-windows-msvc \
|
||||||
|
-- -D warnings
|
||||||
|
- run: |
|
||||||
|
cargo clippy --manifest-path fuzz/Cargo.toml --color=always \
|
||||||
|
-- -D warnings
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Dwarnings"
|
RUSTFLAGS: "-Dwarnings"
|
||||||
|
|
||||||
|
31
.github/workflows/test.yml
vendored
31
.github/workflows/test.yml
vendored
@ -45,9 +45,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: 1.56.1
|
toolchain: 1.56.1
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
# run --lib and --doc to avoid the long running integration tests which are run elsewhere
|
# run --lib and --doc to avoid the long running integration tests
|
||||||
- run: cargo test --lib --features unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde --color=always -- --color=always
|
# which are run elsewhere
|
||||||
- run: cargo test --doc --features unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde --color=always -- --color=always
|
- run: |
|
||||||
|
cargo test --lib \
|
||||||
|
--features \
|
||||||
|
unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde \
|
||||||
|
--color=always -- --color=always
|
||||||
|
- run: |
|
||||||
|
cargo test --doc \
|
||||||
|
--features \
|
||||||
|
unstable-locales,wasmbind,oldtime,clock,rustc-serialize,winapi,serde \
|
||||||
|
--color=always -- --color=always
|
||||||
|
|
||||||
rust_versions:
|
rust_versions:
|
||||||
strategy:
|
strategy:
|
||||||
@ -63,7 +72,8 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo check --benches
|
- run: cargo check --benches
|
||||||
- run: cargo check --manifest-path fuzz/Cargo.toml --all-targets
|
- run: cargo check --manifest-path fuzz/Cargo.toml --all-targets
|
||||||
# run --lib and --doc to avoid the long running integration tests which are run elsewhere
|
# run --lib and --doc to avoid the long running integration tests
|
||||||
|
# which are run elsewhere
|
||||||
- run: cargo test --lib --all-features --color=always -- --color=always
|
- run: cargo test --lib --all-features --color=always -- --color=always
|
||||||
- run: cargo test --doc --all-features --color=always -- --color=always
|
- run: cargo test --doc --all-features --color=always -- --color=always
|
||||||
|
|
||||||
@ -77,7 +87,13 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: taiki-e/install-action@cargo-hack
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- 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
|
- 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
|
||||||
|
# run using `bash` on all platforms for consistent
|
||||||
|
# line-continuation marks
|
||||||
|
shell: bash
|
||||||
- run: cargo test --lib --no-default-features
|
- run: cargo test --lib --no-default-features
|
||||||
- run: cargo test --doc --no-default-features
|
- run: cargo test --doc --no-default-features
|
||||||
|
|
||||||
@ -139,7 +155,10 @@ jobs:
|
|||||||
targets: wasm32-unknown-unknown
|
targets: wasm32-unknown-unknown
|
||||||
- uses: taiki-e/install-action@cargo-hack
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- 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
|
- 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
|
||||||
|
|
||||||
cross-targets:
|
cross-targets:
|
||||||
strategy:
|
strategy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user