From ffa2caaa10d77b74ee4a67a481d90a299b679d66 Mon Sep 17 00:00:00 2001 From: Ryan A Rodriguez Date: Sun, 27 Oct 2024 15:56:58 -0700 Subject: [PATCH] add linting, formatting to CI --- .github/workflows/CI.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cebbe965..9af8b3e1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always @@ -16,8 +16,13 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + - name: Check formatting + run: cargo fmt -- --check + + - name: Run Clippy (linting) + run: cargo clippy -- -D warnings