-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (52 loc) · 1.91 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Rust
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
- "dev"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose --all-features && ls -sh target/debug/*.rlib
- name: Build single feature
run:
- cargo build --verbose --features=add-ordinal-suffix && ls -sh target/debug/*.rlib
- cargo build --verbose --features=commas && ls -sh target/debug/*.rlib
- cargo build --verbose --features=digits && ls -sh target/debug/*.rlib
- cargo build --verbose --features=find-capital-by-province && ls -sh target/debug/*.rlib
- cargo build --verbose --features=is-persian && ls -sh target/debug/*.rlib
- cargo build --verbose --features=national-id && ls -sh target/debug/*.rlib
- cargo build --verbose --features=remove-ordinal-suffix && ls -sh target/debug/*.rlib
- cargo build --verbose --features=to-persian-chars && ls -sh target/debug/*.rlib
- cargo build --verbose --features=url-fix && ls -sh target/debug/*.rlib
- cargo build --verbose --features=verity-card-number && ls -sh target/debug/*.rlib
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check style
run: cargo fmt --check --verbose
- name: Clippy
run: cargo clippy --no-deps --verbose --all-features
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check style
run: cargo doc --all-features --verbose
test:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --verbose --all-features -- --nocapture