From ed77d9bf602aca2b2bbe9a55344d9af31e64003b Mon Sep 17 00:00:00 2001 From: NicholasBolen <98554429+NicholasBolen@users.noreply.github.com> Date: Thu, 9 Oct 2025 19:19:15 -0600 Subject: [PATCH] Add CI action to run tests on push --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..68c22fc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Test + +on: + push: + branches: ["*"] + pull_request: + branches: ["main"] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: Run tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: dtolnay/rust-toolchain@stable + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + - name: Build + run: cargo build --workspace --all-targets + - name: Run tests + run: cargo test --workspace --all-targets