From 2a091f2d915ef722a3e6c2d9c183911f693eece7 Mon Sep 17 00:00:00 2001 From: Nor Khasyatillah Date: Sat, 17 Aug 2024 09:51:55 +0700 Subject: [PATCH] update CI --- .github/workflows/ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a712799..c798551 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,16 +19,31 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build - run: cargo build --verbose --all-features + run: | + cargo build --verbose --no-default-features && \ + cargo build --verbose --all-features - name: Run tests - run: cargo test --verbose --all-features + run: | + cargo test --verbose --no-default-features && \ + cargo test --verbose --all-features + + - name: Run cargo clippy + run: | + cargo clippy --no-default-features -- -D warnings && \ + cargo clippy --all-features -- -D warnings - name: Run cargo fmt run: cargo fmt --all -- --check - - name: Run cargo clippy - run: cargo clippy --all-features -- -D warnings + - name: Run lolcrab + run: | + echo "Version" && \ + ./target/debug/lolcrab --version && \ + echo "Help" && \ + ./target/debug/lolcrab --help && \ + echo "Test" && \ + ./target/debug/lolcrab <<< "Make your life more colorful"