From 7ef248e061f2a91d746a09c85716ff133d97bba0 Mon Sep 17 00:00:00 2001 From: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com> Date: Thu, 28 Nov 2024 02:35:40 -0500 Subject: [PATCH] ci: add test workflow (#8) * ci: add test workflow * remove duplicate test run --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..05b76a3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Cargo Build & Test + +on: + push: + branches: + - "main" + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Org-rust - latest + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v4 + + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + toolchain: 1.81.0 + + - name: Build + run: cargo build --verbose + + - name: Test Workspace + run: cargo test --workspace