diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d81c948..4bf85c2 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,11 +1,12 @@ -name: Pull Request Test +name: Pull Request Checks on: pull_request: jobs: - checks: + tests: runs-on: ubuntu-latest + name: Check Formatting & Tests steps: - name: Checkout repository uses: actions/checkout@v4 @@ -13,11 +14,6 @@ jobs: - name: Check Formatting run: cargo fmt --check - - name: Run cargo clippy - run: | - rustup component add clippy - cargo clippy --all-features --workspace --tests -- --warn clippy::all --warn clippy::nursery - - name: Install cargo-near CLI run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.6.4/cargo-near-installer.sh | sh @@ -26,3 +22,15 @@ jobs: - name: Run cargo test run: cargo test + + clippy: + runs-on: ubuntu-latest + name: Runs Cargo Clippy + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run cargo clippy + run: | + rustup component add clippy + cargo clippy --all-features --workspace --tests -- --warn clippy::all --warn clippy::nursery