From 904f91027cdfa91790da6bfd153627616ad512fb Mon Sep 17 00:00:00 2001 From: A Farzat Date: Mon, 9 Mar 2026 08:20:17 +0300 Subject: Add GitHub workflow job for tests Though we do not have any tests yet, this will make sure they are checked once they are there. --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8978fd..36f29cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,3 +31,26 @@ jobs: - name: Run clippy run: cargo clippy --all-targets --all-features -- -D warnings + + test: + needs: check + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: rust-${{ hashFiles('Cargo.lock') }} + + - name: Run tests + run: cargo test --all -- cgit v1.2.3-70-g09d2