diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e88898a..080588a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: run: | cargo build --verbose --no-default-features cargo build --verbose --all-features + cargo build --examples - name: Run tests run: | @@ -37,24 +38,25 @@ jobs: cargo clippy --all-features -- -D warnings - name: Run cargo fmt - run: cargo fmt --all -- --check + run: | + cargo fmt --all -- --check - name: Run lolcrab if: matrix.os != 'windows-latest' run: | - echo "Version" && \ - ./target/debug/lolcrab --version && \ - echo "Help" && \ - ./target/debug/lolcrab --help && \ - echo "Test" && \ + echo "Version" + ./target/debug/lolcrab --version + echo "Help" + ./target/debug/lolcrab --help + echo "Test" ./target/debug/lolcrab <<< "Make your life more colorful" - name: Run lolcrab (Windows) if: matrix.os == 'windows-latest' - run: > - echo "Version" && - target/debug/lolcrab --version && - echo "Help" && - target/debug/lolcrab --help && - echo "Test" && + run: | + echo "Version" + target/debug/lolcrab --version + echo "Help" + target/debug/lolcrab --help + echo "Test" echo "Make your life more colorful" | target/debug/lolcrab diff --git a/Makefile b/Makefile index b2c4d5c..125a9b8 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,17 @@ SHELL := /bin/bash -.PHONY: all check test +.PHONY: all lib bin -all: check test +all: lib bin -check: - cargo build --all-features && \ - cargo clippy --all-features -- -D warnings && \ - cargo fmt --all -- --check +lib: + cargo build --no-default-features && \ + cargo clippy --no-default-features -- -D warnings && \ + cargo fmt --all -- --check && \ + cargo test --no-default-features -test: - cargo test --all-features +bin: + cargo build && \ + cargo clippy -- -D warnings && \ + cargo fmt --all -- --check && \ + cargo test