Skip to content

Commit 7fc9d9a

Browse files
Merge pull request itsybitesyspider#9 from itsybitesyspider/develop
Github actions badge
2 parents 777ee06 + be9dcd8 commit 7fc9d9a

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Tests
22

33
on: [push]
44

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
[![Crates.io](https://img.shields.io/crates/v/retriever.svg)](https://crates.io/crates/retriever)
55
[![Docs.rs](https://docs.rs/retriever/badge.svg)](https://docs.rs/retriever/latest/)
6+
[![GitHub Actions](https://github.com/itsybitesyspider/retriever/workflows/Tests/badge.svg)](https://github.com/itsybitesyspider/retriever)
67

78
## What is it?
89

bin/build

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
cargo check --all-features
4+
cargo check --all-features --quiet
55
cargo doc --all-features
6-
cargo fmt -- --check
7-
8-
cargo readme > .README.md
9-
diff README.md .README.md
10-
116
cargo build --all-features --quiet
127

138
echo -e "\033[1;32mSUCCESS\033[0m"

bin/test

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ cargo test --benches
1717
# Run examples
1818
cargo run --example count_records
1919

20-
# Fail on Warning
20+
# Fail syntax warnings
2121
RUSTFLAGS="${RUSTFLAGS} -D warnings" cargo check --all-features
2222

23+
# Fail on bad cargo fmt
24+
cargo fmt -- --check
25+
26+
# Fail if README isn't up-to-date
27+
cargo readme > .README.md
28+
diff README.md .README.md
29+
2330
echo -e "\033[1;32mSUCCESS\033[0m"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//!
66
//! [![Crates.io](https://img.shields.io/crates/v/retriever.svg)](https://crates.io/crates/retriever)
77
//! [![Docs.rs](https://docs.rs/retriever/badge.svg)](https://docs.rs/retriever/latest/)
8+
//! [![GitHub Actions](https://github.com/itsybitesyspider/retriever/workflows/Tests/badge.svg)](https://github.com/itsybitesyspider/retriever)
89
//!
910
//! # What is it?
1011
//!

0 commit comments

Comments
 (0)