77branches :[ master ]
88
99env :
10+ CARGO_INCREMENTAL :0
1011CARGO_TERM_COLOR :always
12+ RUST_BACKTRACE :1
13+ RUSTFLAGS :-D warnings
14+ RUSTDOCFLAGS :-D warnings --cfg docsrs
1115
1216jobs :
1317build :
@@ -20,28 +24,50 @@ jobs:
2024 -nightly
2125steps :
2226 -uses :actions/checkout@v2
23- -name :Installlatest nightly
27+ -name :Installtoolchain
2428uses :actions-rs/toolchain@v1
2529with :
2630toolchain :${{ matrix.rust }}
2731override :true
2832 -name :Build
2933run :cargo build --verbose
30- -name :Run tests
31- run :cargo test --verbose
34+ -name :Run tests with all features
35+ run :cargo test --all-features -- verbose
3236 -name :Run tests without features
33- run :cargo test --verbose -- no-default-features
37+ run :cargo test --no-default-features --verbose
3438 -name :Package
3539run :cargo package
3640 -name :Test package
3741run :cd $(find target/package/ -maxdepth 1 -mindepth 1 -type d) && cargo test
3842 -name :Test package without features
3943run :cd $(find target/package/ -maxdepth 1 -mindepth 1 -type d) && cargo test --no-default-features
44+ -name :Build docs
45+ if :matrix.rust == 'nightly'
46+ run :cargo doc --all-features --verbose
47+ -name :Check formatting
48+ if :matrix.rust == 'stable'
49+ run :cargo fmt --all --check
50+ -name :Check clippy
51+ if :matrix.rust == 'stable'
52+ run :cargo clippy --all-features --all --verbose
53+ msrv :
54+ runs-on :ubuntu-latest
55+ steps :
56+ -uses :actions/checkout@v2
57+ -name :Install msrv toolchain
58+ uses :actions-rs/toolchain@v1
59+ with :
60+ toolchain :1.36
61+ override :true
62+ -name :Build
63+ run :cargo build --verbose --all-features
4064regen :
4165runs-on :ubuntu-latest
4266steps :
4367 -uses :actions/checkout@v3
4468 -name :Regen
4569run :cd scripts && python3 unicode.py
46- -name :Diff
70+ -name :Diff tables
4771run :diff src/tables.rs scripts/tables.rs
72+ -name :Diff tests
73+ run :diff tests/data/normalization_tests.rs scripts/normalization_tests.rs