From 62f6ec8fa6906e6ec1bf067e4939858305e7ca21 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Mon, 10 Jun 2024 09:14:33 -0400 Subject: [PATCH] ci(check): add test step --- .github/workflows/check.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 29ff885..947daaf 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,6 +10,23 @@ on: branches: [main] jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + + - name: Setup Rust cache + uses: Swatinem/rust-cache@v2 + + - name: Test + run: cargo test + clippy: runs-on: ubuntu-latest steps: @@ -44,4 +61,4 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Rustfmt - run: cargo fmt --all -- --check \ No newline at end of file + run: cargo fmt --all -- --check