From 8040dccb15c9542e2c0b6db1631e8a5ff85cff9f Mon Sep 17 00:00:00 2001 From: Klaus Ma Date: Mon, 12 Feb 2024 05:38:13 +0000 Subject: [PATCH] Update CI flow. Signed-off-by: Klaus Ma --- .../workflows/{rust.yml => codeverify.yml} | 0 .github/workflows/unittest.yml | 33 +++++++++++++++++++ 2 files changed, 33 insertions(+) rename .github/workflows/{rust.yml => codeverify.yml} (100%) create mode 100644 .github/workflows/unittest.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/codeverify.yml similarity index 100% rename from .github/workflows/rust.yml rename to .github/workflows/codeverify.yml diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml new file mode 100644 index 0000000..5d413d5 --- /dev/null +++ b/.github/workflows/unittest.yml @@ -0,0 +1,33 @@ +name: Chariot CI +on: [push, pull_request] +env: + CLICOLOR_FORCE: 1 +jobs: + ci: + name: Unit Test + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + rust: [stable] + os: [ubuntu-latest] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install rust + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + profile: minimal + override: true + - name: Install cargo-make + uses: actions-rs/cargo@v1 + with: + command: install + args: --debug cargo-make + - name: Install gRPC + run: | + sudo apt-get update && sudo apt-get install -y protobuf-compiler + - name: Cargo test + run: | + cargo make test