From a24dadd42d0a79c8c316b22b647d1a73dfb4c538 Mon Sep 17 00:00:00 2001 From: shnewto Date: Sun, 3 Mar 2024 18:21:00 -0700 Subject: [PATCH] add tests to ci --- .github/workflows/ci.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 00dc75a..42c58f3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,6 +25,22 @@ jobs: - name: rustfmt check run: cargo fmt --all -- --check + + clippy: + needs: [format] + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - run: rustup component add clippy + - name: cargo clippy + run: cargo clippy --all-features --all-targets + + test: + needs: [format] + runs-on: macos-latest + steps: + - name: cargo test + run: cargo test --features bevy macos-latest-stable: needs: [format] @@ -101,11 +117,3 @@ jobs: with: command: build - clippy: - needs: [format] - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - run: rustup component add clippy - - name: cargo clippy - run: cargo clippy --all-features --all-targets