7
7
branches : [ master ]
8
8
9
9
env :
10
+ CARGO_INCREMENTAL : 0
10
11
CARGO_TERM_COLOR : always
12
+ RUST_BACKTRACE : 1
13
+ RUSTFLAGS : -D warnings
14
+ RUSTDOCFLAGS : -D warnings --cfg docsrs
11
15
12
16
jobs :
13
17
build :
@@ -20,28 +24,50 @@ jobs:
20
24
- nightly
21
25
steps :
22
26
- uses : actions/checkout@v2
23
- - name : Install latest nightly
27
+ - name : Install toolchain
24
28
uses : actions-rs/toolchain@v1
25
29
with :
26
30
toolchain : ${{ matrix.rust }}
27
31
override : true
28
32
- name : Build
29
33
run : 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
32
36
- name : Run tests without features
33
- run : cargo test --verbose -- no-default-features
37
+ run : cargo test --no-default-features --verbose
34
38
- name : Package
35
39
run : cargo package
36
40
- name : Test package
37
41
run : cd $(find target/package/ -maxdepth 1 -mindepth 1 -type d) && cargo test
38
42
- name : Test package without features
39
43
run : 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
40
64
regen :
41
65
runs-on : ubuntu-latest
42
66
steps :
43
67
- uses : actions/checkout@v3
44
68
- name : Regen
45
69
run : cd scripts && python3 unicode.py
46
- - name : Diff
70
+ - name : Diff tables
47
71
run : diff src/tables.rs scripts/tables.rs
72
+ - name : Diff tests
73
+ run : diff tests/data/normalization_tests.rs scripts/normalization_tests.rs
0 commit comments