From 35c06ed32c480fd5939ed4aba189f76f6fd059d2 Mon Sep 17 00:00:00 2001 From: theoforger Date: Tue, 12 Nov 2024 21:11:28 -0500 Subject: [PATCH] Update CI --- .github/workflows/rust.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f827bb3..8e5241e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,19 +13,23 @@ env: DEFAULT_MODEL_ID: "" jobs: - build: - + lint: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Test -V - run: cargo run -- -V - - name: Test -h - run: cargo run -- -h - - name: Run unit testing - run: cargo test - - name: Run linting test + - name: Run rustfmt run: cargo fmt --check + - name: Run clippy + run: cargo clippy --all-features --all-targets -- -D clippy::all + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run unit testing + run: cargo test + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose \ No newline at end of file