Skip to content

Commit b21c533

Browse files
Merge pull request itsybitesyspider#7 from itsybitesyspider/develop
Develop
2 parents 97471a2 + bef7fd0 commit b21c533

File tree

4 files changed

+37
-32
lines changed

4 files changed

+37
-32
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12+
- name: Setup
13+
run: cargo install cargo-readme
1214
- name: Build
13-
run: cargo build --verbose
15+
run: ./bin/build
1416
- name: Run tests
15-
run: cargo test --verbose
17+
run: ./bin/test

bin/build

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
cargo check --all-features
5+
cargo doc --all-features
6+
cargo fmt -- --check
7+
8+
cargo readme > .README.md
9+
diff README.md .README.md
10+
11+
cargo build
12+
13+
echo -e "\033[1;32mSUCCESS\033[0m"

bin/ci

Lines changed: 0 additions & 30 deletions
This file was deleted.

bin/test

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Run tests with all features
5+
cargo test --all-features
6+
cargo test --doc --all-features
7+
cargo test --benches --all-features
8+
9+
# Run tests with no features
10+
cargo test
11+
cargo test --doc
12+
cargo test --benches
13+
14+
# Run tests with some features
15+
# If any other combination ever fails after the above passes, leave it here.
16+
17+
# Run examples
18+
cargo run --example count_records
19+
20+
echo -e "\033[1;32mSUCCESS\033[0m"

0 commit comments

Comments
 (0)