File tree Expand file tree Collapse file tree 5 files changed +107
-2
lines changed Expand file tree Collapse file tree 5 files changed +107
-2
lines changed Original file line number Diff line number Diff line change 1+ [alias ]
2+ xfmt = " fmt -- --config imports_granularity=Crate"
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - main
5+ pull_request :
6+ branches :
7+ - main
8+
9+ name : CI
10+
11+ jobs :
12+ lint :
13+ name : Lint
14+ runs-on : ubuntu-latest
15+ env :
16+ RUSTFLAGS : -D warnings
17+ steps :
18+ - uses : actions/checkout@v2
19+ with :
20+ # Checkout the code as-is from the pull request, rather than a merge commit.
21+ ref : ${{ github.event.pull_request.head.sha }}
22+ - uses : actions-rs/toolchain@v1
23+ with :
24+ toolchain : stable
25+ components : rustfmt, clippy
26+ - name : Lint (rustfmt)
27+ uses : actions-rs/cargo@v1
28+ with :
29+ command : xfmt
30+ args : --check
31+ - name : Lint (clippy)
32+ uses : actions-rs/cargo@v1
33+ with :
34+ command : clippy
35+ args : --all-features --all-targets
36+
37+ build :
38+ name : Build and test
39+ runs-on : ${{ matrix.os }}
40+ strategy :
41+ matrix :
42+ os : [ ubuntu-latest, macos-latest, windows-latest ]
43+ fail-fast : false
44+ env :
45+ RUSTFLAGS : -D warnings
46+ steps :
47+ - uses : actions/checkout@v2
48+ with :
49+ ref : ${{ github.event.pull_request.head.sha }}
50+ - uses : actions-rs/toolchain@v1
51+ with :
52+ toolchain : stable
53+ override : true
54+ - name : Build
55+ uses : actions-rs/cargo@v1
56+ with :
57+ command : build
58+ - name : Install nextest
59+ uses : taiki-e/install-action@nextest
60+ - name : Test
61+ uses : actions-rs/cargo@v1
62+ with :
63+ command : nextest
64+ args : run --all-features
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - main
5+
6+ name : Docs
7+
8+ jobs :
9+ docs :
10+ name : Build and deploy documentation
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : actions-rs/toolchain@v1
15+ with :
16+ toolchain : stable
17+ - name : Build rustdoc
18+ uses : actions-rs/cargo@v1
19+ with :
20+ command : doc
21+ args : --all-features
22+ - name : Organize
23+ run : |
24+ mkdir target/gh-pages
25+ mv target/doc target/gh-pages/rustdoc
26+ - name : Deploy
27+ uses : JamesIves/github-pages-deploy-action@releases/v3
28+ with :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ BRANCH : gh-pages
31+ FOLDER : target/gh-pages
Original file line number Diff line number Diff line change 11# datatest-stable
22
3- [ ![ datatest-stable on crates.io] ( https://img.shields.io/crates/v/datatest-stable )] ( https://crates.io/crates/datatest-stable ) [ ![ Documentation (latest release)] ( https://docs.rs/datatest-stable/badge.svg )] ( https://docs.rs/datatest-stable/ ) [ ![ Documentation (main)] ( https://img.shields.io/badge/docs-main-brightgreen )] ( https://diem.github.io/diem-devtools/rustdoc/datatest_stable/ ) [ ![ License] ( https://img.shields.io/badge/license-Apache-green.svg )] ( ../LICENSE-APACHE ) [ ![ License] ( https://img.shields.io/badge/license-MIT-green.svg )] ( ../LICENSE-MIT )
3+ [ ![ datatest-stable on crates.io] ( https://img.shields.io/crates/v/datatest-stable )] ( https://crates.io/crates/datatest-stable )
4+ [ ![ Documentation (latest release)] ( https://img.shields.io/badge/docs-latest-brightgreen )] ( https://docs.rs/datatest-stable/ )
5+ [ ![ Documentation (main)] ( https://img.shields.io/badge/docs-main-purple )] ( https://nextest-rs.github.io/datatest-stable/rustdoc/datatest_stable/ )
6+ [ ![ License] ( https://img.shields.io/badge/license-Apache-green.svg )] ( ../LICENSE-APACHE )
7+ [ ![ License] ( https://img.shields.io/badge/license-MIT-green.svg )] ( ../LICENSE-MIT )
48
59` datatest-stable ` is a very simple test harness intended to write data-driven tests, where
610individual test cases are specified as data and not as code. Given:
Original file line number Diff line number Diff line change 11# { {crate} }
22
3- [](https://crates.io/crates/datatest-stable) [](https://docs.rs/datatest-stable/) [](https://diem.github.io/diem-devtools/rustdoc/datatest_stable/) [](../LICENSE-APACHE) [](../LICENSE-MIT)
3+ [](https://crates.io/crates/datatest-stable)
4+ [](https://docs.rs/datatest-stable/)
5+ [](https://nextest-rs.github.io/datatest-stable/rustdoc/datatest_stable/)
6+ [](../LICENSE-APACHE)
7+ [](../LICENSE-MIT)
48
59{ {readme} }
610
You can’t perform that action at this time.
0 commit comments