From 60ae95ea5f8649b22d4c2f83928ee764dde9748b Mon Sep 17 00:00:00 2001 From: Awiteb Date: Fri, 9 Aug 2024 21:01:45 +0000 Subject: [PATCH] chore: Build the examples and run tests Signed-off-by: Awiteb --- .forgejo/workflows/ci.yml | 6 +++++- Justfile | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index a504b8b..31ab8c4 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -17,9 +17,13 @@ jobs: run: cargo +1.75 build - name: Build the source code run: cargo build + - name: Build examples + run: cargo build -F 'cacache-storage' --example simple_login + - name: Run tests + run: cargo test --tests --all-features - name: Check the code format run: cargo fmt -- --check - name: Run cargo-check run: cargo check - name: Run cargo-clippy - run: cargo clippy -- -D warnings \ No newline at end of file + run: cargo clippy -- -D warnings diff --git a/Justfile b/Justfile index dde7453..fb19106 100644 --- a/Justfile +++ b/Justfile @@ -19,6 +19,7 @@ _default: # Run the CI (Local use only) @ci: cargo fmt --all --check + cargo build -F 'cacache-storage' --example simple_login cargo clippy --workspace --all-targets --examples --tests --all-features -- -D warnings cargo nextest run --workspace --all-targets --all-features @{{JUST_EXECUTABLE}} msrv